Meteor-Community-Packages / meteor-collection-hooks

Meteor Collection Hooks
https://atmospherejs.com/matb33/collection-hooks
MIT License
657 stars 92 forks source link

Add cursor to before.find and before.findOne #171

Closed ghost closed 8 years ago

ghost commented 8 years ago

Being able to get and manipulate the cursor of before.find and before.findOne would be really useful, especially for a package like Planifica/encryption. As in Planifica/encryption#9 it's needed to decrypt and filter documents.

Would it be possible to implement it?

matb33 commented 8 years ago

I don't think the cursor would even be available at that point... I can see the use case, but it's just not going to work since before.find and before.findOne occur before find