skip to Main Content

extract subdocument in mongoDB

I am new to MongoDB and I'm struggling in extract a subdocument from a document. In my case, I have the following schema: [ { user_id: "u1", subscriptions: [ { "tier": "Basic", "requests": [ { "name": "aaaa" }, { "name":…

VIEW QUESTION

Mongodb – Updating and Adding on multiple documents using pymongo

I have a mongo database having data record like below [ {"name" : "a", "email" : "[email protected]","ml_pred":"valid","hum_pred":"null", "score":0.92}, {"name" : "b","email" : "[email protected]","ml_pred":"invalid","hum_pred":"null", "score":0.2}, {"name" : "c","email" : "[email protected]","ml_pred":"null","hum_pred":"null"}, {"name" : "d","email" : "[email protected]","ml_pred":"null","hum_pred":"null"}, {"name" : "e","email" : "[email protected]","ml_pred":"null","hum_pred":"null"} ]…

VIEW QUESTION
Back To Top
Search