Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as mongoose from 'mongoose';
- console.log(mongoose.connect); // undefined
- // but
- console.log(mongoose);
- /*
- { connections:
- [ NativeConnection {
- base: [Object],
- collections: {},
- models: {},
- config: [Object],
- replica: false,
- hosts: null,
- host: null,
- port: null,
- user: null,
- pass: null,
- name: null,
- options: null,
- otherDbs: [],
- _readyState: 0,
- _closeCalled: false,
- _hasOpened: false,
- _listening: false } ],
- plugins: [],
- models: {},
- modelSchemas: {},
- options: { pluralization: true },
- default:
- Mongoose {
- connections: [ [Object] ],
- plugins: [],
- models: {},
- modelSchemas: {},
- options: { pluralization: true } } }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement