Meteor-Community-Packages / meteor-partitioner

Transparently divide a single meteor app into several different instances shared between different groups of users.
152 stars 18 forks source link

Partitioner.directOperation #20

Open alur222 opened 8 years ago

alur222 commented 8 years ago

Hi @mizzao it's me again. I am trying to do an operation on a partitioned collection. Basically, I want to query something on the collection and just return the results. Is it achievable with Partitioner.directOperation ? My collection basically contains email addresses and I want to check if an email address belongs to another partition.

Im pretty confused because I can't seem to return anything. Any thoughts?

Thanks!

mizzao commented 8 years ago

It is possible, but you might find it easier just to use collection.direct.find() (see https://github.com/matb33/meteor-collection-hooks)

alur222 commented 8 years ago

nice! I will check it out. Thanks!