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?
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 usingdb.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?