For AI agents: a documentation index is available at https://www.mongodb.com/ja-jp/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Array Update Modifiers
The following modifiers change how the $push and $addToSet operators update arrays: