redis-oplog
redis-oplog copied to clipboard
Support `View` in Mongo 3.4!
Now I use Mongo 3.4, and create view for collection relation.
Redis-Oplog support reactive data for view or not???
@thearabbit do you use the view inside minimongo ? how do you create it ?
I create view directly in Mongo, and then create ViewCollection normal in Meteor.
ViewCollection = new Mongo.Collection('myview');
Ok so the scenario is I need to subscribe to a view collection, but when actions are dispatched, that view won't know about the inserts, because the subscription to it will listen to "myview"
I believe we could create an aliasing scheme inside Redis.
RedisOplog.connect(ViewCollection, 'actual_database_name')
// whenever ViewCollection is supscribed, it will use 'actual_database_name' instead of viewCollection._name)
Are you interested in doing a PR for this ?
Thanks for your solve. Sorry I can't `` do this (beginner).