-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unknown modifier: $pushAll" #57
Comments
I had the same problem.
for more info check: |
This solved the issue for me, and I think these changes ought to be committed to the main project, being that mongo dropped support for pushAll in version 3.6 in 2017 (which is, incidentally, about as long as this project has been abandoned). Alternatively, we could update the readme to state that this project requires mongo <3.6. |
Thanks ! It works |
Otherwise actions such as commenting fail with: Unknown modifier: $pushAll As per: https://stackoverflow.com/questions/48607918/mongoerror-unknown-modifier-pushall-in-node-js/50435618#50435618 Fix gothinkster#57 Fix gothinkster#96 Fix gothinkster#64
Otherwise actions such as commenting fail with: Unknown modifier: $pushAll As per: https://stackoverflow.com/questions/48607918/mongoerror-unknown-modifier-pushall-in-node-js/50435618#50435618 Tested on Ubuntu 20.10, Mongo 4.4.4, https://github.com/gothinkster/vue-realworld-example-app at 61742206c170db02b04d63c7e9d43807d8c6b902 with only the URL modified: diff --git a/src/common/config.js b/src/common/config.js index 03af84e..ccd9c4d 100644 --- a/src/common/config.js +++ b/src/common/config.js @@ -1,2 +1,2 @@ -export const API_URL = "https://conduit.productionready.io/api"; +export const API_URL = "http://localhost:3000/api"; export default API_URL; Fix gothinkster#57 Fix gothinkster#96 Fix gothinkster#64
The fix was originally from here: gothinkster/node-express-realworld-example-app#57 (comment)
I had the same problem but @jkonstan solution worked just changed |
Request URL: http://localhost:3000/api/articles/test-2-rvhad1/comments
Request Method: POST
Status Code: 500 Internal Server Error
response : {"errors":{"message":"Unknown modifier: $pushAll","error":{"name":"MongoError","message":"Unknown modifier: $pushAll","driver":true,"index":0,"code":9,"errmsg":"Unknown modifier: $pushAll"}}}
The text was updated successfully, but these errors were encountered: