Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { [Function: model]
- hooks: Kareem { _pres: {}, _posts: {} },
- base:
- Mongoose {
- connections: [ [Object] ],
- plugins: [],
- models: { person: [Object], Comment: [Object], User: [Circular] },
- modelSchemas: { person: [Object], Comment: [Object], User: [Object] },
- options: { pluralization: true } },
- modelName: 'User',
- model: [Function: model],
- db:
- NativeConnection {
- base:
- Mongoose {
- connections: [Object],
- plugins: [],
- models: [Object],
- modelSchemas: [Object],
- options: [Object] },
- collections: { people: [Object], comments: [Object], users: [Object] },
- models: { person: [Object], Comment: [Object], User: [Circular] },
- config: { autoIndex: true },
- replica: false,
- hosts: null,
- host: 'localhost',
- port: 27017,
- user: undefined,
- pass: undefined,
- name: 'baking_sense',
- options:
- { db: [Object],
- auth: {},
- server: [Object],
- replset: [Object],
- mongos: undefined },
- otherDbs: [],
- _readyState: 1,
- _closeCalled: false,
- _hasOpened: true,
- _listening: false,
- db:
- EventEmitter {
- domain: null,
- _events: [Object],
- _eventsCount: 6,
- _maxListeners: undefined,
- s: [Object],
- serverConfig: [Getter],
- bufferMaxEntries: [Getter],
- databaseName: [Getter],
- _listening: true } },
- discriminators: undefined,
- authenticate: [Function],
- serializeUser: [Function],
- deserializeUser: [Function],
- register: [Function],
- findByUsername: [Function],
- createStrategy: [Function],
- schema:
- Schema {
- obj:
- { username: [Function: String],
- password: [Function: String],
- isAdmin: false },
- paths:
- { username: [Object],
- password: [Object],
- isAdmin: [Object],
- _id: [Object],
- hash: [Object],
- salt: [Object],
- __v: [Object] },
- subpaths: {},
- virtuals: { id: [Object] },
- singleNestedPaths: {},
- nested: {},
- inherits: {},
- callQueue: [ [Object], [Object], [Object], [Object], [Object] ],
- _indexes: [],
- methods: { setPassword: [Function], authenticate: [Function] },
- statics:
- { authenticate: [Function],
- serializeUser: [Function],
- deserializeUser: [Function],
- register: [Function],
- findByUsername: [Function],
- createStrategy: [Function] },
- tree:
- { username: [Function: String],
- password: [Function: String],
- isAdmin: false,
- _id: [Object],
- id: [Object],
- hash: [Object],
- salt: [Object],
- __v: [Function: Number] },
- query: {},
- childSchemas: [],
- s: { hooks: [Object], kareemHooks: [Object] },
- options:
- { retainKeyOrder: false,
- typeKey: 'type',
- id: true,
- noVirtualId: false,
- _id: true,
- noId: false,
- validateBeforeSave: true,
- read: null,
- shardKey: null,
- autoIndex: null,
- minimize: true,
- discriminatorKey: '__t',
- versionKey: '__v',
- capped: false,
- bufferCommands: true,
- strict: true,
- pluralization: true },
- '$globalPluginsApplied': true,
- _requiredpaths: [] },
- collection:
- NativeCollection {
- collection: { s: [Object] },
- opts: { bufferCommands: true, capped: false },
- name: 'users',
- collectionName: 'users',
- conn:
- NativeConnection {
- base: [Object],
- collections: [Object],
- models: [Object],
- config: [Object],
- replica: false,
- hosts: null,
- host: 'localhost',
- port: 27017,
- user: undefined,
- pass: undefined,
- name: 'baking_sense',
- options: [Object],
- otherDbs: [],
- _readyState: 1,
- _closeCalled: false,
- _hasOpened: true,
- _listening: false,
- db: [Object] },
- queue: [],
- buffer: false,
- emitter:
- EventEmitter {
- domain: null,
- _events: {},
- _eventsCount: 0,
- _maxListeners: undefined } },
- Query:
- { [Function]
- base:
- Query {
- toConstructor: [Function: toConstructor],
- setOptions: [Function],
- collection: [Function: collection],
- '$where': [Function],
- where: [Function],
- equals: [Function: equals],
- eq: [Function: eq],
- or: [Function: or],
- nor: [Function: nor],
- and: [Function: and],
- gt: [Function],
- gte: [Function],
- lt: [Function],
- lte: [Function],
- ne: [Function],
- in: [Function],
- nin: [Function],
- all: [Function],
- regex: [Function],
- size: [Function],
- maxDistance: [Function],
- minDistance: [Function],
- mod: [Function],
- exists: [Function],
- elemMatch: [Function],
- within: [Function: within],
- box: [Function],
- polygon: [Function],
- circle: [Function],
- near: [Function: near],
- intersects: [Function: intersects],
- geometry: [Function: geometry],
- select: [Function: select],
- slice: [Function],
- sort: [Function],
- limit: [Function],
- skip: [Function],
- maxScan: [Function],
- batchSize: [Function],
- comment: [Function],
- maxTime: [Function],
- snapshot: [Function],
- hint: [Function],
- slaveOk: [Function],
- read: [Function],
- tailable: [Function],
- merge: [Function],
- find: [Function],
- cursor: [Function: cursor],
- findOne: [Function],
- count: [Function],
- distinct: [Function],
- update: [Function: update],
- updateMany: [Function: updateMany],
- updateOne: [Function: updateOne],
- replaceOne: [Function: replaceOne],
- remove: [Function],
- deleteOne: [Function],
- deleteMany: [Function],
- findOneAndUpdate: [Function],
- findOneAndRemove: [Function],
- _findAndModify: [Function],
- _wrapCallback: [Function],
- setTraceFunction: [Function],
- exec: [Function: exec],
- thunk: [Function],
- then: [Function],
- stream: [Function],
- selected: [Function: selected],
- selectedInclusively: [Function: selectedInclusively],
- selectedExclusively: [Function: selectedExclusively],
- _mergeUpdate: [Function],
- _optionsForExec: [Function],
- _fieldsForExec: [Function],
- _updateForExec: [Function],
- _ensurePath: [Function],
- _validate: [Function] } },
- '$__insertMany': [Function],
- insertMany: [Function] }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement