{"action":"opened","issue":{"url":"https://api.github.com/repos/kcbanner/connect-mongo/issues/166","labels_url":"https://api.github.com/repos/kcbanner/connect-mongo/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/kcbanner/connect-mongo/issues/166/comments","events_url":"https://api.github.com/repos/kcbanner/connect-mongo/issues/166/events","html_url":"https://github.com/kcbanner/connect-mongo/issues/166","id":65454876,"number":166,"title":"Re-use a native MongoDB driver connection","user":{"login":"mjmasn","id":2977095,"avatar_url":"https://avatars.githubusercontent.com/u/2977095?v=3","gravatar_id":"","url":"https://api.github.com/users/mjmasn","html_url":"https://github.com/mjmasn","followers_url":"https://api.github.com/users/mjmasn/followers","following_url":"https://api.github.com/users/mjmasn/following{/other_user}","gists_url":"https://api.github.com/users/mjmasn/gists{/gist_id}","starred_url":"https://api.github.com/users/mjmasn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjmasn/subscriptions","organizations_url":"https://api.github.com/users/mjmasn/orgs","repos_url":"https://api.github.com/users/mjmasn/repos","events_url":"https://api.github.com/users/mjmasn/events{/privacy}","received_events_url":"https://api.github.com/users/mjmasn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-31T13:47:27Z","updated_at":"2015-03-31T13:47:27Z","closed_at":null,"body":"Using the following example from the docs I get the error ```Error: Required MongoStore option `db` missing or is not a string```\r\n\r\n```javascript\r\napp.use(session({\r\n    store: new MongoStore({ db: dbInstance })\r\n}));\r\n```\r\nI'm definitely passing a Db instance in:\r\n```javascript\r\nDb = require('mongodb').Db;\r\n\r\nconsole.log(dbInstance instanceof Db); // true\r\nconsole.log(dbInstance instanceof MongoStore); // false (just for comparison)\r\n```\r\nLogging out the dbInstance gives:\r\n```javascript\r\n{domain: null,\r\n  _events: {},\r\n  _maxListeners: undefined,\r\n  s: \r\n   { databaseName: 'DATABASE_NAME',\r\n     topology: \r\n      { domain: null,\r\n        _events: [Object],\r\n        _maxListeners: undefined,\r\n        s: [Object],\r\n        isMasterDoc: [Getter],\r\n        bson: [Getter],\r\n        haInterval: [Getter],\r\n        emitOpen: false,\r\n        connectTimeoutMS: 30000,\r\n        socketTimeoutMS: 0 },\r\n     options: \r\n      { read_preference_tags: null,\r\n        read_preference: 'primary',\r\n        url: 'REPLICA_SET_URL',\r\n        native_parser: true,\r\n        readPreference: [Object] },\r\n     logger: { className: 'Db' },\r\n     bson: null,\r\n     authSource: undefined,\r\n     readPreference: { _type: 'ReadPreference', mode: 'primary', tags: undefined },\r\n     bufferMaxEntries: -1,\r\n     parentDb: null,\r\n     pkFactory: undefined,\r\n     nativeParser: true },\r\n  serverConfig: [Getter],\r\n  bufferMaxEntries: [Getter],\r\n  databaseName: [Getter],\r\n  options: [Getter],\r\n  native_parser: [Getter],\r\n  slaveOk: [Getter],\r\n  writeConcern: [Getter] }\r\n```\r\nAm I doing something wrong or is this a bug?"}}