$pull
The $pull operation is used to remove specific elements from an array field in the specified column. It filters the array and deletes all occurrences of the given value or values that match the provided condition. Unlike $pop, which removes elements based on their position, $pull ensures that only the specified values are removed while preserving the order of the remaining elements in the array.
Last updated