Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server.
Issue Description
Getting
collection.findOneAndUpdate option [returnOriginal] is deprecated and will be removed in a later version.
Steps to reproduce
Pull master branch and run trigger findOneAndUpdate on db adapter
Actual Outcome
A lot of deprecation warnings
Expected Outcome
No warning
Environment
5.0.0-alpha.1
We need to replace returnOriginal
with returnDocument
as suggested here: https://jira.mongodb.org/browse/NODE-1812