I have a subscription in meteor where I get a array from mongo..when I read the collection in the client I've notice that meteor through DDP read the array elements one by one. How can I read the whole data as one packet??
CollectionName.find({}).fetch() return an array you can iterate ;)
CollectionName.find({}).fetch()
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have a subscription in meteor where I get a array from mongo..when I read the collection in the client I've notice that meteor through DDP read the array elements one by one. How can I read the whole data as one packet??
CollectionName.find({}).fetch()
return an array you can iterate ;)