Skip to content

Commit

Permalink
docs: update MIGRATION_V4.md (#417)
Browse files Browse the repository at this point in the history
Migrating to V4 while still using mongoose and aiming to reuse the existing mongoose  connection, this info is very helpful.
  • Loading branch information
omarius authored Apr 28, 2021
1 parent 94b65f6 commit 5b1b965
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MIGRATION_V4.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ For the options, you should make the following changes:

* Change `url` to `mongoUrl`
* Keep `clientPromise` if you are using it
* `mongooseConnection` & `clientPromise` have been removed. Please update your application code to use either `mongoUrl` or `clientPromise`
* `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.
* Remove `fallbackMemory` option and if you are using it, you can import from:

```js
Expand Down

0 comments on commit 5b1b965

Please sign in to comment.