Array The following operators assist with updating arrays. $addToSet: Adds distinct elements to an array $pop: Removes the first or last element of an array $pull: Removes all elements from an array that match the query $push: Adds an element to an array