‫Hello, my friends, and welcome.
‫In this video, we'll learn how to update the data inside the document.
‫So I will select user number one Jack Reacher.
‫I will change the Born from 1992 to 1990 through my Android studio applications.
‫So updating the data in the document, I will comment all of this stuff.
‫I don't need them.
‫I need to start with DB Dot collection.
‫What is the name of the collection that we are working with?
‫It's called Users.
‫You can see users and the document is called User number one.
‫So here dot document user number one dot I will go to another line.
‫Dot update.
‫You can see delete or update.
‫Update here.
‫We need to pass two values.
‫The first one is the field of type string and the second with the value.
‫The new value.
‫So what is the name of the field?
‫It's called Born.
‫So I told you that it's case sensitive.
‫So everything in Firebase, when dealing with Firebase, everything is sensitive.
‫Born and I will set the value is 1990.
‫Let me run the application and see whenever the data is changed.
‫You can see that this application changes this board data.
‫You can.
‫See that I can change the name from Jack Reacher to.
‫Carlos.
‫Let me run it.
‫Whenever the application.
‫The calls.
‫The Oncreate method name is changed so we can see how fast is Firebase.
‫This is how we update data in documents and in Firebase.
‫Also, I can call the delete function.
‫This is the delete.
‫I can run the application so whenever the application is running you can see that the user number one
‫is deleted.
‫Only user number two is still persist.
‫So congratulations, guys.
‫We have learned how we make the create the replace or remove the update and delete and read data from
‫the Firebase Firestore correctly through this section.