-
Notifications
You must be signed in to change notification settings - Fork 32
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
can not use with publish as it is returning array of objects instead of cursor #17
Comments
You can't use this with publications. This is meant to use with a Meteor On Fri, May 15, 2015 at 5:02 PM Laxmikant Dange [email protected]
|
Do you have a functional example that I can see how to get the data from the server to the client. |
I was looking into using aggregate function today and I realized that when you use the aggregate function, the one not wrapped, you can specify What if we could wrap this cursor with a cursor that Meteor can use, this way we could use This is what you can do to get a cursor from the aggregate function. var cursor = Meteor.users.rawCollection().aggregate([{ $match: {} }], { cursor: {} }); As I said this will not be a cursor Meteor knows how to handle today but we should be able to use the |
Hi @arunoda, I am actually using this inside a publication. |
look https://blog.khophi.co/reactive-aggregation-in-meteor/ and https://github.com/JcBernack/meteor-reactive-aggregate it wrap this logic perfectly |
No description provided.
The text was updated successfully, but these errors were encountered: