Skip to content
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

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

Open
sflowerlisa22 opened this issue Feb 27, 2019 · 1 comment
Open

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

sflowerlisa22 opened this issue Feb 27, 2019 · 1 comment

Comments

@sflowerlisa22
Copy link

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
Copy link

@sflowerlisa22 try This->

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants