I have a collection of objects with a date/timestamp property which designates when that item 'becomes active' and visible to the user. The items shouldn't be visible to the user until the time passes a certain point and the query condition holds true.
Example
My publish function on the server looks something like this:
Meteor.publish('publishName', function() {
return MyCollection.find({activeFrom: {$lte: new Date()}});
});
When I load the page at 22nd November at 15:45, and an item in the collection has the activeFrom property set to the 22nd of November, 15:50, I would like my publish method to automatically push that item to the client when the clock becomes 15:50.
I haven't been able to find any tips on how to achieve that. Surely someone must have done something like this with Meteor before?