lib/mongodb/MongoDBCollection.js
function(config, req, res, context) {
    var options = Collection.prototype.preFindObjectOperation.apply(this, arguments)
    options.driverOptions = config.driverOptions
    if (!_.isNil(options.projection)) {
      options.driverOptions.fields = options.projection
      delete options.projection
    }
    return options
  }
function(config, req, res, context) {
    var options = Collection.prototype.preFindObjectOperation.apply(this, arguments)
    options.driverOptions = config.driverOptions
    if (!_.isNil(options.projection)) {
      options.driverOptions.fields = options.projection
      delete options.projection
    }
    return options
  }
function ( config , req , res , context ) { var options = Collection . prototype . preFindObjectOperation . apply ( this , arguments ) options . driverOptions = config . driverOptions if ( ! _ . isNil ( options . projection ) ) { options . driverOptions . fields = options . projection delete options . projection } return options }
***************************************************************************
@method preFindObjectOperation
@description Build the options to be passed to the operation handler from the
request and operation config. Note, in general, this should not need to be
overridden or extended.
@param {carbond.collections.FindObjectConfig} config -- The find object operation config
@param {carbond.Request} req -- The request object
@param {carbond.Response} res -- The response object
@param {Object} context -- A free form object to pass data between hook and handler
methods
@returns {typedef:carbond.collections.Collection.PreOperationResult}
***************************************************************************