jstests/core/verify_update_mods.js
// Issues the update command and returns the response.
Issues the update command and returns the response.
Issues the update command and returns the response .
function updateCommand(coll, query, update, arrayFilters) {
    const commandOptions = {upsert: true};
    if (arrayFilters !== undefined) {
        commandOptions.arrayFilters = arrayFilters;
    }
    return coll.update(query, update, commandOptions);
}
function updateCommand ( coll , query , update , arrayFilters ) { const commandOptions = { upsert : true } ; if ( arrayFilters !== undefined ) { commandOptions . arrayFilters = arrayFilters ; } return coll . update ( query , update , commandOptions ) ; }
Issues the update command and returns the response.
Issues the update command and returns the response .