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

A
Removes elements
B
Adds elements to an array
C
Updates a field
D
Deletes a document
Solution:

$push adds an element to an array field in a document.

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!