开发者

Pymongo $size operator

开发者 https://www.devze.com 2023-04-10 13:59 出处:网络
Is $size equivalent operator for query condition in pymongo? like {\'a\'开发者_Python百科: {\'$size\': 3}}

Is $size equivalent operator for query condition in pymongo?

like {'a'开发者_Python百科: {'$size': 3}}

for {a: [1,2,3]}


I don't quite understand your question, but if you're asking if db.foo.find({a: {$size: 3}}) would return the document {a: [1, 2, 3]}, then the answer is yes.

0

精彩评论

暂无评论...
验证码 换一张
取 消