Created
February 23, 2016 08:49
-
-
Save SamuelMarks/dedd863742f90cf2f333 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| mongoose.connect = MongooseThenable { | |
| connections: | |
| [ NativeConnection { | |
| base: [Object], | |
| collections: {}, | |
| models: {}, | |
| config: [Object], | |
| replica: false, | |
| hosts: null, | |
| host: '192.168.2.2', | |
| port: 27017, | |
| user: 'monguser', | |
| pass: 'mongpass', | |
| name: 'ps', | |
| options: [Object], | |
| otherDbs: [], | |
| _readyState: 2, | |
| _closeCalled: false, | |
| _hasOpened: false, | |
| _listening: false, | |
| db: [Object] } ], | |
| plugins: [], | |
| models: {}, | |
| modelSchemas: {}, | |
| options: { pluralization: true }, | |
| STATES: | |
| { '0': 'disconnected', | |
| '1': 'connected', | |
| '2': 'connecting', | |
| '3': 'disconnecting', | |
| '4': 'unauthorized', | |
| '99': 'uninitialized', | |
| disconnected: 0, | |
| connected: 1, | |
| connecting: 2, | |
| disconnecting: 3, | |
| unauthorized: 4, | |
| uninitialized: 99 }, | |
| set: [Function], | |
| get: [Function], | |
| createConnection: [Function], | |
| connect: [Function], | |
| disconnect: [Function], | |
| model: [Function], | |
| modelNames: [Function], | |
| _applyPlugins: [Function], | |
| plugin: [Function], | |
| connection: | |
| NativeConnection { | |
| base: | |
| Mongoose { | |
| connections: [Object], | |
| plugins: [], | |
| models: {}, | |
| modelSchemas: {}, | |
| options: [Object] }, | |
| collections: {}, | |
| models: {}, | |
| config: { autoIndex: true }, | |
| replica: false, | |
| hosts: null, | |
| host: '192.168.2.2', | |
| port: 27017, | |
| user: 'monguser', | |
| pass: 'mongpass', | |
| name: 'ps', | |
| options: { db: [Object], auth: {}, server: [Object], replset: [Object] }, | |
| otherDbs: [], | |
| _readyState: 2, | |
| _closeCalled: false, | |
| _hasOpened: false, | |
| _listening: false, | |
| db: | |
| EventEmitter { | |
| domain: null, | |
| _events: {}, | |
| _eventsCount: 0, | |
| _maxListeners: undefined, | |
| s: [Object], | |
| serverConfig: [Getter], | |
| bufferMaxEntries: [Getter], | |
| databaseName: [Getter], | |
| options: [Getter], | |
| native_parser: [Getter], | |
| slaveOk: [Getter], | |
| writeConcern: [Getter] } }, | |
| Aggregate: [Function], | |
| Collection: [Function], | |
| Connection: [Function], | |
| version: '4.4.4', | |
| Mongoose: [Function], | |
| Schema: [Function], | |
| SchemaType: [Function], | |
| SchemaTypes: | |
| { String: { [Function: SchemaString] schemaName: 'String' }, | |
| Number: { [Function: SchemaNumber] schemaName: 'Number' }, | |
| Boolean: { [Function: SchemaBoolean] schemaName: 'Boolean', '$conditionalHandlers': [Object] }, | |
| DocumentArray: { [Function: DocumentArray] schemaName: 'DocumentArray' }, | |
| Embedded: [Function: Embedded], | |
| Array: { [Function: SchemaArray] schemaName: 'Array' }, | |
| Buffer: { [Function: SchemaBuffer] schemaName: 'Buffer' }, | |
| Date: { [Function: SchemaDate] schemaName: 'Date' }, | |
| ObjectId: { [Function: ObjectId] schemaName: 'ObjectId' }, | |
| Mixed: { [Function: Mixed] schemaName: 'Mixed' }, | |
| Oid: { [Function: ObjectId] schemaName: 'ObjectId' }, | |
| Object: { [Function: Mixed] schemaName: 'Mixed' }, | |
| Bool: { [Function: SchemaBoolean] schemaName: 'Boolean', '$conditionalHandlers': [Object] } }, | |
| VirtualType: [Function], | |
| Types: | |
| { Array: { [Function: MongooseArray] mixin: {} }, | |
| Buffer: { [Function: MongooseBuffer] mixin: [Object], Binary: [Object] }, | |
| Embedded: [Function: EmbeddedDocument], | |
| Document: [Function: EmbeddedDocument], | |
| DocumentArray: { [Function: MongooseDocumentArray] mixin: [] }, | |
| ObjectId: | |
| { [Function: ObjectID] | |
| index: 10092698, | |
| createPk: [Function: createPk], | |
| createFromTime: [Function: createFromTime], | |
| createFromHexString: [Function: createFromHexString], | |
| isValid: [Function: isValid], | |
| ObjectID: [Circular], | |
| ObjectId: [Circular] }, | |
| Subdocument: [Function: Subdocument] }, | |
| Query: [Function], | |
| PromiseProvider: | |
| { _promise: { [Function: Promise] ES6: [Function], SUCCESS: 'complete', FAILURE: 'err' }, | |
| get: [Function], | |
| set: [Function], | |
| reset: [Function] }, | |
| Model: [Function], | |
| Document: [Function], | |
| DocumentProvider: [Function], | |
| Error: [Function], | |
| CastError: [Function], | |
| mongo: [Function], | |
| mquery: [Function], | |
| '$opPromise': | |
| Promise { | |
| emitter: | |
| EventEmitter { | |
| domain: null, | |
| _events: {}, | |
| _eventsCount: 0, | |
| _maxListeners: undefined }, | |
| emitted: {}, | |
| ended: false } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment