Skip to content

Commit

Permalink
docs: Update MIGRATION_V4.md (#421)
Browse files Browse the repository at this point in the history
I spent several hours understanding why mongo doesn't find a session record.
Only via the debugger, I figure out that it uses the default collection with the name `sessions` instead of my custom name.
  • Loading branch information
nodkz authored May 13, 2021
1 parent 9c1d0b5 commit 03962f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MIGRATION_V4.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ app.use(session({
For the options, you should make the following changes:

* Change `url` to `mongoUrl`
* Change `collection` to `collectionName` if you are using it
* Keep `clientPromise` if you are using it
* `mongooseConnection` has been removed. Please update your application code to use either `mongoUrl`, `client` or `clientPromise`
* To reuse an existing mongoose connection retreive the mongoDb driver from you mongoose connection using `Connection.prototype.getClient()` and pass it to the store in the `client`-option.
Expand Down

0 comments on commit 03962f4

Please sign in to comment.