rule-engine

How to store aggregation pipeline in mongoDB?

How to store aggregation pipeline in mongoDB? Question: I am developing a rule engine using MongoDB and Python. I want to store Rules in MongoDB in a Rule database “myrulesdb” and want to use it to run aggregation pipeline on a different collection. Rule saved in MongoDB is { “_id” : ObjectId(“57f46e843166d426a20d5e08”), “Rule” : “[{“$match”:{“Name.First”:”Sunil”}},{“$limit”:5}]”, …

Total answers: 2