Assume that there is collectionA, collectionB. When I operate map reduce with collectionA collectionB, I kept the result in collectionC.
My problem is given below.
I want to update collectionC when collectionA or collectionB is updated, collectionC will be updated.
Are there any method to do this operation? In sql, I can do this operation with triggers on tables but I couldn't do this on MongoDB.