MONGODB QUERY - UPDATE A DOCUMENT IN MONGODB | SPRING REST  API APPLICATION EXAMPLE | InterviewDOT
Channel: Interview DOT
Date: 2021-08-06

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications.

MONGODB QUERY - UPDATE A DOCUMENT IN MONGODB | SPRING REST  API APPLICATION EXAMPLE | InterviewDOT


WHAT IS @GETMAPPING IN SPRING REST APPLICATION | REST GET API SPRING BOOT CODE DEMO| InterviewDOT

#JAVA #JAVASPRING #JAVASPRINGBOOT #JAVASPRINGBOOTREST
#JAVASPRINGRESTAPPLICATION #SPRINGCRUDAPPLICATION

IF YOU HAVE NOT SUBSCRIBE TO INTERVIEWDOT CHANNEL PLEASE SUBSCRIBE FOR LATEST SOFTWARE UPDATES - THANKS HAPPY LEARNING INTERVIEWDOT

MongoDB provides the update() command to update the documents of a collection. To update only the documents you want to update, you can add a criteria to the update statement so that only selected documents are updated.

The basic parameters in the command is a condition for which document needs to be updated, and the next is the modification which needs to be performed.

The following example shows how this can be done.

Step 1) Issue the update command

Step 2) Choose the condition which you want to use to decide which document needs to be updated.