Home  >  Q&A  >  body text

python - pymongo 如何查询一个字典数组中的某个KEY对应某个值?

天蓬老师天蓬老师2709 days ago677

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-18 10:01:55

    Achieved with $elemMatch

     db.test1.find({}, {"MemberList":{"$elemMatch":{"Uin":1589615073,"NickName":"暖暖的"}}})

    reply
    0
  • Cancelreply