$ | Acts as a placeholder to update the first element that matches the query condition.充当占位符,更新与查询条件匹配的第一个元素。 |
$[] | Acts as a placeholder to update all elements in an array for the documents that match the query condition.充当占位符,更新与查询条件匹配的文档的数组中的所有元素。 |
$[<identifier>] | Acts as a placeholder to update all elements that match the arrayFilters condition for the documents that match the query condition.充当占位符,更新与查询条件匹配的文档中与arrayFilters条件匹配的所有元素。 |
$addToSet | Adds elements to an array only if they do not already exist in the set.仅当元素在集合中不存在时,才向数组添加元素。 |
$pop | Removes the first or last item of an array.删除数组的第一项或最后一项。 |
$pull | Removes all array elements that match a specified query.删除与指定查询匹配的所有数组元素。 |
$push | Adds an item to an array.将项添加到数组中。 |
$pullAll | Removes all matching values from an array.从数组中删除所有匹配的值。 |