Array Update Operators数组更新运算符
On this page本页内容
Note
For details on a specific operator, including syntax and examples, click on the link to the operator's reference page.有关特定运算符的详细信息,包括语法和示例,请单击该运算符参考页的链接。
Update Operators更新运算符
$ | |
$[] | |
$[<identifier>] | arrayFilters condition for the documents that match the query condition.arrayFilters 条件匹配的所有元素。 |
$addToSet | |
$pop | |
$pull | |
$push | |
$pullAll |
Update Operator Modifiers更新运算符修饰符
$each | $push and $addToSet operators to append multiple items for array updates.$push 和$addToSet 运算符,以便为数组更新追加多个项。 |
$position | $push operator to specify the position in the array to add elements.$push 运算符以指定要添加元素的数组中的位置。 |
$slice | $push operator to limit the size of updated arrays.$push 运算符以限制更新数组的大小。 |
$sort | $push operator to reorder documents stored in an array.$push 运算符以重新排序存储在数组中的文档。 |
← $unset $ (update) →