You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 14, 2019. It is now read-only.
But this does nothing. No change. Calling this in the mongo console result in an error, becuase the collection is really called 'users'. calling db.users.update(...) in the console works fine, but result in an error when called from my node.js code (as expected).
So is simpledb preventing the db.User.update(...) call in my node code from working?
I have a user.js schema file that result in a db.User model. Now I want to remove a field called 'email_verified' from all User documents, like this:
But this does nothing. No change. Calling this in the mongo console result in an error, becuase the collection is really called 'users'. calling db.users.update(...) in the console works fine, but result in an error when called from my node.js code (as expected).
So is simpledb preventing the db.User.update(...) call in my node code from working?