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 has been archived by the owner on May 30, 2024. It is now read-only.
You forgot to give first parameter, which is context this, in your case maybe try passing it User. The signature of .sync functions is similar to .call
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using mongoose to query mongodb from nodejs and I obtain next error when query a document:
2015-12-11T08:56:13.381Z - error: uncaughtException: Cannot read property 'discriminatorMapping' of undefined
The line of code thats thwows error:
User.findOne.sync({id_company: id_c}, function(err, usr) {
The text was updated successfully, but these errors were encountered: