nl_tokens: ***************************************************************************
pl_tokens: function ( update , options , context ) { var driverOptions = { } if ( options . upsert ) { driverOptions = _ . assignIn ( driverOptions , options . driverOptions , { upsert : true } ) } var result = undefined try { var result = this . collection . updateMany ( options . query , update , driverOptions ) } catch ( e ) { // XXX: revisit this when leafnode exposes mongo error codes // https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err if ( ! _ . isNil ( e . code ) && e . code === 9 ) { // FailedToParse throw new ( this . getService ( ) . errors . BadRequest ) ( e . message ) } } var _result = { // no matched count here val : result . modifiedCount + result . upsertedCount , created : result . upsertedCount > 0 } if ( _result . <mask> ) { _result . val = [ result . upsertedId ] } return _result }