How does the $pop operator work in MongoDB?
Removes the last element of an array
Removes the first element of an array
Removes an element at a specified index
Can remove the first or last element of an array
This question is part of this quiz :
MongoDB Operators Quiz