This repository has been archived by the owner on Mar 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Update method shows deprecation warning #122
Labels
Comments
This is also applicable to others methods like |
I've forked this version and adjusted the create (insert => insertMany insertOne ) deprecation version, if you want I can try to fix all of this kind of error and make a pull request let me know if it's ok |
Yes, that is always very welcome. |
OK I'll work on that, I've seen that updateOne and updateMany are quite different from the update itself. |
daffl
pushed a commit
that referenced
this issue
Nov 15, 2018
* added a control to the create method and modified the behavior * removed deprecation warning * added two test maybe are duplicated but I wanted to be sure that patch worked fine * linted the test file * Ternary operators
Closed via #126 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Steps to reproduce
Expected behavior
Document gets updated, no warning messages shown.
Actual behavior
Document gets updated, but a deprecation warning is shown:
Reason: The update method should use updateOne internally.
System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
"@feathersjs/express": "^1.2.6",
"@feathersjs/feathers": "^3.2.2",
"feathers-mongodb": "^3.3.0",
MongoDB 3.6.7
NodeJS version:
8.12.0
Operating System:
Linux Mint 18
The text was updated successfully, but these errors were encountered: