nl_tokens: ***************************************************************************
pl_tokens: function ( id , <mask> , options , context ) { var driverOptions = { } if ( options . upsert ) { driverOptions = _ . assignIn ( driverOptions , options . driverOptions , { upsert : true } ) } // use updateOne to expose upsertedCount var result = this . collection . updateOne ( { _id : id } , update , driverOptions ) var _result = { // omit matchedCount here since we are counting updates val : result . modifiedCount + result . upsertedCount , created : result . upsertedCount > 0 } if ( _result . created ) { _result . val = result . upsertedId } return _result }