DEV Community

loading...

Discussion on: I'm a Meteor developer, Ask Me Anything!

Collapse
lmbarr profile image
Luis Miguel

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??

Collapse
guidouil profile image
Guidouil ツ Ask Me Anything

CollectionName.find({}).fetch() return an array you can iterate ;)