Advertisement
Guest User

Untitled

a guest
Apr 24th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. import * as mongoose from 'mongoose';
  2.  
  3. console.log(mongoose.connect); // undefined
  4.  
  5. // but
  6. console.log(mongoose);
  7. /*
  8. { connections:
  9. [ NativeConnection {
  10. base: [Object],
  11. collections: {},
  12. models: {},
  13. config: [Object],
  14. replica: false,
  15. hosts: null,
  16. host: null,
  17. port: null,
  18. user: null,
  19. pass: null,
  20. name: null,
  21. options: null,
  22. otherDbs: [],
  23. _readyState: 0,
  24. _closeCalled: false,
  25. _hasOpened: false,
  26. _listening: false } ],
  27. plugins: [],
  28. models: {},
  29. modelSchemas: {},
  30. options: { pluralization: true },
  31. default:
  32. Mongoose {
  33. connections: [ [Object] ],
  34. plugins: [],
  35. models: {},
  36. modelSchemas: {},
  37. options: { pluralization: true } } }
  38. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement