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

Working with unique values #109

Open
Zetta420 opened this issue Mar 12, 2023 · 0 comments
Open

Working with unique values #109

Zetta420 opened this issue Mar 12, 2023 · 0 comments

Comments

@Zetta420
Copy link

Do you want to request a feature, an issue, or report a bug?
A feature I guess.
What is the current behaviour?

If the current behaviour is a bug, please provide the steps to reproduce.

What is the expected behaviour?
A way to filters the result by unique value. For examples, I got multiple documents with a "name" value. If I got multiple documents with same name, filtering them to get only one.
I know I can use distinct, but distinct is filtering, but returning only the fields you requested.

If this is a feature request, what is the motivation or use case for changing
the behaviour?

I actually need for filtering my +35 000 movies db where there is some duplicates, and I need to keep them in db, but I need for search to avoid duplicates. Thank you !
Please mention other relevant information such as Node.js and mongoose version.

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