Skip to content
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

Mode.distinct without second parameter leads to error #1541

Closed
reezer opened this issue Jun 26, 2013 · 0 comments
Closed

Mode.distinct without second parameter leads to error #1541

reezer opened this issue Jun 26, 2013 · 0 comments

Comments

@reezer
Copy link
Contributor

reezer commented Jun 26, 2013

Doing a Model.distinct query without a second parameter (conditions) causes an error in the callback:

TypeError: Cannot read property 'schema' of undefined
aheckmann added a commit that referenced this issue Jun 27, 2013
aheckmann added a commit to mongodbinc-interns/mongoose that referenced this issue Aug 16, 2013
This was referenced Mar 8, 2021
This was referenced Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant