Last active
May 4, 2019 08:37
-
-
Save Muskos/f3fdaebf2938c8d98c34f80dbea67b66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import | |
{ [Function: model] | |
hooks: | |
Kareem { | |
_pres: Map { 'save' => [Array], 'remove' => [Array] }, | |
_posts: Map { 'save' => [Array], 'init' => [Array] } }, | |
base: | |
Mongoose { | |
connections: [ [NativeConnection] ], | |
models: { User: [Circular] }, | |
modelSchemas: { User: [Schema] }, | |
options: { pluralization: true }, | |
_pluralize: [Function: pluralize], | |
Schema: | |
{ [Function: Schema] reserved: [Object], Types: [Object], ObjectId: [Function] }, | |
model: [Function], | |
plugins: [ [Array], [Array], [Array], [Array] ] }, | |
modelName: 'User', | |
model: [Function: model], | |
db: | |
NativeConnection { | |
base: | |
Mongoose { | |
connections: [Array], | |
models: [Object], | |
modelSchemas: [Object], | |
options: [Object], | |
_pluralize: [Function: pluralize], | |
Schema: [Function], | |
model: [Function], | |
plugins: [Array] }, | |
collections: { users: [NativeCollection] }, | |
models: { User: [Circular] }, | |
config: { autoIndex: true }, | |
replica: false, | |
options: null, | |
otherDbs: [], | |
relatedDbs: {}, | |
states: | |
[Object: null prototype] { | |
'0': 'disconnected', | |
'1': 'connected', | |
'2': 'connecting', | |
'3': 'disconnecting', | |
'99': 'uninitialized', | |
disconnected: 0, | |
connected: 1, | |
connecting: 2, | |
disconnecting: 3, | |
uninitialized: 99 }, | |
_readyState: 0, | |
_closeCalled: false, | |
_hasOpened: false, | |
plugins: [], | |
'$internalEmitter': | |
EventEmitter { | |
_events: [Object: null prototype] {}, | |
_eventsCount: 0, | |
_maxListeners: 0 }, | |
_listening: false }, | |
discriminators: undefined, | |
events: | |
EventEmitter { | |
_events: [Object: null prototype] {}, | |
_eventsCount: 0, | |
_maxListeners: undefined }, | |
'$appliedMethods': true, | |
'$appliedHooks': true, | |
_middleware: | |
Kareem { | |
_pres: Map { 'save' => [Array], 'remove' => [Array] }, | |
_posts: Map { 'save' => [Array], 'init' => [Array] } }, | |
'$__insertMany': [Function], | |
schema: | |
Schema { | |
obj: | |
{ email: [Object], | |
password: [Object], | |
firstName: [Object], | |
lastName: [Object] }, | |
paths: | |
{ email: [SchemaString], | |
password: [SchemaString], | |
firstName: [SchemaString], | |
lastName: [SchemaString], | |
_id: [ObjectId], | |
__v: [SchemaNumber] }, | |
aliases: {}, | |
subpaths: {}, | |
virtuals: { id: [VirtualType] }, | |
singleNestedPaths: {}, | |
nested: {}, | |
inherits: {}, | |
callQueue: [], | |
_indexes: [], | |
methods: {}, | |
methodOptions: {}, | |
statics: {}, | |
tree: | |
{ email: [Object], | |
password: [Object], | |
firstName: [Object], | |
lastName: [Object], | |
_id: [Object], | |
__v: [Function: Number], | |
id: [VirtualType] }, | |
query: {}, | |
childSchemas: [], | |
plugins: [ [Object], [Object], [Object], [Object], [Object] ], | |
'$id': 1, | |
s: { hooks: [Kareem] }, | |
_userProvidedOptions: { toObject: [Object] }, | |
options: | |
{ 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, | |
toObject: [Object], | |
pluralization: true }, | |
'$globalPluginsApplied': true, | |
[Symbol(Mongoose.helpers.setParentPointers)]: true }, | |
collection: | |
NativeCollection { | |
collection: null, | |
Promise: [Function: Promise], | |
opts: | |
{ bufferCommands: true, | |
capped: false, | |
Promise: [Function: Promise], | |
'$wasForceClosed': undefined }, | |
name: 'users', | |
collectionName: 'users', | |
conn: | |
NativeConnection { | |
base: [Mongoose], | |
collections: [Object], | |
models: [Object], | |
config: [Object], | |
replica: false, | |
options: null, | |
otherDbs: [], | |
relatedDbs: {}, | |
states: [Object], | |
_readyState: 0, | |
_closeCalled: false, | |
_hasOpened: false, | |
plugins: [], | |
'$internalEmitter': [EventEmitter], | |
_listening: false }, | |
queue: [], | |
buffer: true, | |
emitter: | |
EventEmitter { | |
_events: [Object: null prototype] {}, | |
_eventsCount: 0, | |
_maxListeners: undefined } }, | |
Query: | |
{ [Function] | |
base: | |
Query { | |
toConstructor: [Function: toConstructor], | |
setOptions: [Function], | |
collection: [Function: collection], | |
collation: [Function], | |
'$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], | |
maxTimeMS: [Function], | |
maxTime: [Function], | |
snapshot: [Function], | |
hint: [Function], | |
j: [Function: j], | |
slaveOk: [Function], | |
setReadPreference: [Function], | |
read: [Function], | |
r: [Function], | |
readConcern: [Function], | |
tailable: [Function], | |
w: [Function: writeConcern], | |
writeConcern: [Function: writeConcern], | |
wTimeout: [Function: wtimeout], | |
wtimeout: [Function: wtimeout], | |
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], | |
findOneAndDelete: [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] } }, | |
'$init': Promise { <pending> }, | |
'$caught': true, | |
[Symbol(mongoose#Model)]: true } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
require
{ default:
{ [Function: model]
hooks: Kareem { _pres: [Map], _posts: [Map] },
base:
Mongoose {
connections: [Array],
models: [Object],
modelSchemas: [Object],
options: [Object],
_pluralize: [Function: pluralize],
Schema: [Function],
model: [Function],
plugins: [Array] },
modelName: 'User',
model: [Function: model],
db:
NativeConnection {
base: [Mongoose],
collections: [Object],
models: [Object],
config: [Object],
replica: false,
options: null,
otherDbs: [],
relatedDbs: {},
states: [Object],
_readyState: 0,
_closeCalled: false,
_hasOpened: false,
plugins: [],
'$internalEmitter': [EventEmitter],
_listening: false },
discriminators: undefined,
events:
EventEmitter {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined },
'$appliedMethods': true,
'$appliedHooks': true,
_middleware: Kareem { _pres: [Map], _posts: [Map] },
'$__insertMany': [Function],
schema:
Schema {
obj: [Object],
paths: [Object],
aliases: {},
subpaths: {},
virtuals: [Object],
singleNestedPaths: {},
nested: {},
inherits: {},
callQueue: [],
_indexes: [],
methods: {},
methodOptions: {},
statics: {},
tree: [Object],
query: {},
childSchemas: [],
plugins: [Array],
'$id': 1,
s: [Object],
_userProvidedOptions: [Object],
options: [Object],
'$globalPluginsApplied': true,
[Symbol(Mongoose.helpers.setParentPointers)]: true },
collection:
NativeCollection {
collection: null,
Promise: [Function: Promise],
opts: [Object],
name: 'users',
collectionName: 'users',
conn: [NativeConnection],
queue: [],
buffer: true,
emitter: [EventEmitter] },
Query: { [Function] base: [Query] },
'$init': Promise { },
'$caught': true,
[Symbol(mongoose#Model)]: true } }