What are the limitations of minimongo (meteor)? cursor.toArray () does not work on client side

I broke my head yesterday trying to get an array of query results in Meteor using

cursor.toArray() 

(see http://docs.mongodb.org/manual/reference/method/cursor.toArray/ )

I could not get it to work. Finally, I tried it in the Meteor mongo console, and it worked perfectly.

I'm new to Meteor - what am I missing here? is there a link that tells me which mango code can be executed on the client side? I looked in the documents Meteor and could not find. When I look for what I can do in Meteor, I often look through Mongolian documents (as indicated above) - how important are they in minimongo?

Thanks!

+5
source share
1 answer

I think you should stick to some of the Mongolian collections in Meteor docs:

http://docs.meteor.com/#collections

This is a link that discusses topics such as the current limitations of minimongo and, most importantly, which APIs are available on the client and server regarding MongoDB manipulations.

As for toArray , the closest minimally implemented counterpart will be fetch .

http://docs.meteor.com/#fetch

+6
source

Source: https://habr.com/ru/post/1203424/


All Articles