Updating multiple elements in Array data type in mongodb using shell

we have an 2 documents in mongodb like below

now we want to update grades value of which are greater then or equal  to 100 is the Query for updating multiple elements in Array.

 

 

in above Query all the elements which are greater then  or equal 100 are replace with 80 we have list of operators show here and dummy_collection is my Collection name

Leave a Reply

Your email address will not be published. Required fields are marked *