Q. What is the purpose of $pull in updates?

A
Adds elements
B
Removes elements from an array
C
Updates a field
D
Creates an index
Solution:

$pull removes elements from an array that match a condition.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!