Answer the question
In order to leave comments, you need to log in
How to find users with a certain value and check them?
MongoDB has a structure:
'_id': member.id,
'premium': {
'status': 0,
'trial': 0,
'class': None,
'date': None
},
Answer the question
In order to leave comments, you need to log in
Pseudo-Mongodb code
If you need more filtering by class, then
db.collection.find({"premium.status": 1})
db.collection.find({"premium.status": 1, "premium.class": {$in: ["class1", "class2"]}})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question