Observable (docs) only seems to watch individual objects.
What is a good way to observe a collection, and call a method whenever a document is created, updated, or deleted?
Working in Ruby 2.1.2 (without Rails), Mongo and Mongoid.
Observable (docs) only seems to watch individual objects.
What is a good way to observe a collection, and call a method whenever a document is created, updated, or deleted?
Working in Ruby 2.1.2 (without Rails), Mongo and Mongoid.
Looks like there may be a method for achieving this detailed within the following thread: How to listen to changes to a MongoDB collection?