Guest User

Untitled

a guest
Mar 22nd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. MongoClient.connect('mongodb://127.0.0.1:27017/exampleDB', (err, client) => {
  2. console.log(client);
  3. client.close();
  4. });
  5.  
  6. MongoClient {
  7. domain: null,
  8. _events: {},
  9. _eventsCount: 0,
  10. _maxListeners: undefined,
  11. s:
  12. { url: 'mongodb://127.0.0.1:27017/aircraftDB',
  13. options:
  14. { socketOptions: {},
  15. read_preference_tags: null,
  16. readPreference: [ReadPreference],
  17. dbName: 'aircraftDB',
  18. servers: [Array],
  19. server_options: [Object],
  20. db_options: [Object],
  21. rs_options: [Object],
  22. mongos_options: [Object],
  23. socketTimeoutMS: 360000,
  24. connectTimeoutMS: 30000,
  25. promiseLibrary: [Function: Promise] },
  26. promiseLibrary: [Function: Promise],
  27. dbCache: {},
  28. sessions: [] },
  29. topology:
  30. Server {
  31. domain: null,
  32. _events:
  33. { serverOpening: [Function],
  34. serverDescriptionChanged: [Function],
  35. serverHeartbeatStarted: [Function],
  36. serverHeartbeatSucceeded: [Function],
  37. serverHeartbeatFailed: [Function],
  38. serverClosed: [Function],
  39. topologyOpening: [Function],
  40. topologyClosed: [Function],
  41. topologyDescriptionChanged: [Function],
  42. joined: [Function],
  43. left: [Function],
  44. ping: [Function],
  45. ha: [Function],
  46. authenticated: [Function],
  47. error: [Function],
  48. timeout: [Function],
  49. close: [Function],
  50. parseError: [Function],
  51. open: [Function],
  52. fullsetup: [Function],
  53. all: [Function],
  54. reconnect: [Function] },
  55. _eventsCount: 22,
  56. _maxListeners: Infinity,
  57. clientInfo:
  58. { driver: [Object],
  59. os: [Object],
  60. platform: 'Node.js v9.2.0, LE' },
  61. s:
  62. { coreTopology: [Server],
  63. sCapabilities: null,
  64. clonedOptions: [Object],
  65. reconnect: true,
  66. emitError: true,
  67. poolSize: 5,
  68. storeOptions: [Object],
  69. store: [Store],
  70. host: '127.0.0.1',
  71. port: 27017,
  72. options: [Object],
  73. sessionPool: [ServerSessionPool],
  74. sessions: [],
  75. promiseLibrary: [Function: Promise] } } }
Add Comment
Please, Sign In to add comment