Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to MongoDB Driver 4.x #9855

Merged
merged 11 commits into from
Feb 9, 2021
Merged

Upgrade to MongoDB Driver 4.x #9855

merged 11 commits into from
Feb 9, 2021

Conversation

vkarpov15
Copy link
Collaborator

No description provided.

@vkarpov15 vkarpov15 self-assigned this Jan 23, 2021
@vkarpov15
Copy link
Collaborator Author

Notes on some breaking changes:

  1. The overwrite option to update(), updateOne(), etc. is no longer supported. You need to use replaceOne() instead
  2. Connection#host, Connection#port, Connection#name will not be set until after connection is established.
  3. MongoDB driver 4.x requires Node.js 10 or higher.

@vkarpov15
Copy link
Collaborator Author

  1. MongoDB driver no longer supports bufferMaxEntries
  2. The result of updateOne() and updateMany() operations no longer has ok, n, or nModified properties. These properties are replaced with acknowledged, matchedCount, and modifiedCount
  3. The result of deleteOne() and deleteMany() operations no longer has an n property, it has been renamed deletedCount

@vkarpov15
Copy link
Collaborator Author

  1. No more geoSearch() or geoHaystackSearch() re: https://docs.mongodb.com/manual/reference/command/geoSearch/
  2. poolSize option is gone, replaced by minPoolSize and maxPoolSize

@vkarpov15 vkarpov15 merged commit f3fee5e into 6.0 Feb 9, 2021
@Uzlopak Uzlopak deleted the gh-9840 branch June 14, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant