Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
514 stars 197 forks source link

Query with subobject does not work #254

Open Taxel opened 7 years ago

Taxel commented 7 years ago

Hi, I am trying to send push notifications via Push.send({ from: 'push', title: 'Quote of the Day', text: quote.quote + ' ' + quote.author, //send where interval is 2 (daily) query: {'profile.quotesInterval': 2} }); but it does not work. If I leave the query empty, everything works perfectly, and when using db.users.find({'profile.quotesInterval':2}) MongoDB returns users, so in theory the query should work.

Is there another way to select something out of a subobject?