alanjames1987 / marilyn

Marilyn is a client side, Socket.IO driven, Pub/Sub, model layer with a query system similar to Mongoose.
MIT License
114 stars 3 forks source link

Feature: Real Time Query Result(s) #16

Open alanjames1987 opened 9 years ago

alanjames1987 commented 9 years ago

Query results should be optionally real time, meaning they will change as the collection changes.

This might introduce some other problems, but I think they can all be solved elegantly.

alanjames1987 commented 9 years ago

There should be a realtime method added to all result(s) which is called if that result set changes in any way.

results.realtime(function(results) {
    // results is the new results that have changed
});
alanjames1987 commented 9 years ago

I like this way better than #15.

alanjames1987 commented 9 years ago

To do this all results would have to retain the query that created them.