inProgress-team / react-native-meteor

Meteor Reactivity for your React Native application :)
MIT License
693 stars 210 forks source link

Why does find() not return a cursor? #333

Open sflowerlisa22 opened 5 years ago

sflowerlisa22 commented 5 years ago

Just a question I'm having trouble understanding

Normally in meteor I thought find() would return a cursor only, but when I log it shows its actually the whole array of objects from the collection - is this normal?

export default withTracker((props) => {
      objectReady: Meteor.subscribe('collection').ready(),
      currentObject: Collection.find({ "important": true })
}

I thought you would need to fetch() first? https://forums.meteor.com/t/why-is-this-working-without-fetch/48034

shivamarora123 commented 5 years ago

@sflowerlisa22 try This->

Meteor.collection("collectionName", { cursoredFind: true })