-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Distinct entries #114
Comments
+1 |
1 similar comment
+1 |
This is best done in the logic that populates the collection you give to autocomplete, and not handled by the package itself. Perhaps you can try publishing a |
@mizzao Maybe there's a way I don't see because of my lack of experience, but collection.distinct() returns an array not a cursor, so I can't integrate it with the auto-complete, as it asks for a collection. |
Yeah, you'd have to do some more legwork to get it from the raw Mongo query, over a publication, into a collection on the client :) |
I see, thanks a lot ! 2016-02-10 17:56 GMT+02:00 Andrew Mao [email protected]:
|
I want to fetch distinct entries from the field. Is there any option where I can avoid duplicate entries?
The text was updated successfully, but these errors were encountered: