Raja Muhammad Asher
Raja Muhammad Asher

Raja Muhammad Asher

Explain the SET Modifier in MongoDB?

Photo by Rubaitul Azad on Unsplash

Explain the SET Modifier in MongoDB?

Raja Muhammad Asher's photo
Raja Muhammad Asher
·Jun 20, 2022·

1 min read

The $set operator replaces the value of a field with the specified value. If the field does not exist, $set will add a new field with the specified value, provided that the new field does not violate a type constraint.

Sources:

$Set — MongoDB Manual. mongodb.com/docs/manual/reference/operator/...

 
Share this