Question 6

Last Updated :
Discuss
Comments

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

Tags:
Share your thoughts in the comments