MongoDB Array Query Operators

Name Description
$all Matches arrays that contain all elements specified in the query.
$elemMatch Selects documents if element in the array field matches all the specified $elemMatch conditions.
$size Selects documents if the array field is a specified size.

参考:
https://docs.mongodb.com/manual/reference/operator/query-array/

你可能感兴趣的:(mongodb,mongodb)