src/mongoose.js
function createModel (app, name, options) {
  const mongooseClient = app.get('mongoose');
  assert(mongooseClient, 'mongoose client not set by app');
  const schema = new mongooseClient.Schema({ any: {} }, {strict: false});
  return mongooseClient.model(name, schema);
}
function createModel (app, name, options) {
  const mongooseClient = app.get('mongoose');
  assert(mongooseClient, 'mongoose client not set by app');
  const schema = new mongooseClient.Schema({ any: {} }, {strict: false});
  return mongooseClient.model(name, schema);
}
function createModel ( app , name , options ) { const mongooseClient = app . get ( 'mongoose' ) ; assert ( mongooseClient , 'mongoose client not set by app' ) ; const schema = new mongooseClient . Schema ( { any : { } } , { strict : false } ) ; return mongooseClient . model ( name , schema ) ; }
Create a mongoose model with free schema
Create a mongoose model with free schema