How to use the mquery.utils function in mquery

To help you get started, we’ve selected a few mquery examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github YourTradingSystems / EasyERP / node_modules / mongoose / lib / schema.js View on Github external
, versionKey: '__v'
    , discriminatorKey: '__t'
    , minimize: true
    , autoIndex: true
    , shardKey: null
    , read: null
    // the following are only applied at construction time
    , noId: false // deprecated, use { _id: false }
    , _id: true
    , noVirtualId: false // deprecated, use { id: false }
    , id: true
//    , pluralization: true  // only set this to override the global option
  }, options);

  if (options.read) {
    options.read = mquery.utils.readPref(options.read);
  }

  return options;
}

mquery

Expressive query building for MongoDB

MIT
Latest version published 1 year ago

Package Health Score

74 / 100
Full package analysis