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
It would be nice and useful to support a count of uniques across a specified field in the collection documents (or to be able to provide a uniqueId function that accepts a document and returns its unique ID for the sake of this count).
Hi @rantav - that seems like an interesting idea, although difficult to implement as we don't currently track any properties of our counted documents (except implicitly through the observer).
I think implementing such a feature would probably increase the complexity of the package quite a bit so I'm not sure it makes sense, given the package is pretty simple right now. If you wanted to put a PR together to do it, I'd happily take a look however.
This is just an idea, but you may be able to achieve this using the newest version of Meteor and the rawConnection and rawCollection methods, which have access to distinct.
It can be done at first load, but how to keep it reactive, as new documents
are added? (Without having to keep a state on the node server)
On Apr 8, 2015 5:02 PM, "javaknight" notifications@github.com wrote:
This is just an idea, but you may be able to achieve this using the newest
version of Meteor and the rawConnection and rawCollection methods, which
have access to distinct.
—
Reply to this email directly or view it on GitHub #23 (comment)
.
It would be nice and useful to support a count of uniques across a specified field in the collection documents (or to be able to provide a uniqueId function that accepts a document and returns its unique ID for the sake of this count).
Is this BTW perhaps already supported?...
Example:
The text was updated successfully, but these errors were encountered: