예제 #1
0
 def db_command(self):
     return mongo_data.find(
         {"authored.comments": {"$elemMatch": {"user_id": {"$gte": self.arguments[0], "$lt": self.arguments[1]}}}},
         {"authored.comments": 1},
     )
예제 #2
0
 def db_command(self):
     return mongo_data.find(
         {"$and": [{"user_id": {"$gte": self.arguments[0]}}, {"user_id": {"$lt": self.arguments[1]}}]}
     )