标签: python python-3.x mongodb pymongo
我在time_to_receive列中查找所需的时间,例如:“ 20:33”,并且我需要从category和用户名返回“ business”,我该怎么办它吗?
time_to_receive
category
Image of DB 现在我找到匹配的元素并获取所有列
for x in mycol.find({ f"time_to_receive.{i}": { '$elemMatch': {'$eq': time}}})