No video

Firestore | Updating a document | UPDATE and SET

  Рет қаралды 13,781

Mafia Codes

Mafia Codes

4 жыл бұрын

In this video you will learn how to update documents in #firebase #firestore database.
You will also learn what is the difference between UPDATE method and the SET method.
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! www.kite.com/g...
FREE $100 credit @Digital Ocean: m.do.co/c/3208...
Patreon: / trulymittal
Subscribe: www.youtube.co...
Completed Notes App: github.com/tru...
Firebase Console: console.fireba...
Add Firebase to Project: firebase.googl...
Firebase UI: github.com/fir...
Dependencies:
Firebase Authentication: firebase.googl...
Firebase Firestore: firebase.googl...
FirebaseUI: github.com/fir...
Cloud Storage: firebase.googl...
#yoursTruly #FirebaseSDK #tutorial #android
---------------
More useful videos
---------------
RecyclerView: • Recycler View with com...
ViewModel: • View Model | Live Data...
NavigationComponent: • Navigation Component |...
WorkManager: • Work Manager | Android...
Retrofit: • RETROFIT Tutorial (v 2...
CollapsingToolbar Layout: • Collapsing Toolbar Lay...
BottomNavigation View: • Bottom Navigation View...
KeyframeAnimations: • Keyframe Animations wi...
NightMode: • Night Mode | Dark Mode...
ButterKnife: • Butter Knife | Field a...
SplashScreen: • Splash screen | Launch...
Singletons: • Singletons | What When...
Pull to Refresh in RecyclerView: • Pull to Refresh in Rec...
On item click using Interface in RecyclerView: • RecyclerView item Clic...
Swipe gestures in Recycler View: • Swipe gestures in Recy...
Drag and drop Reorder in Recycler View: • Drag and drop Reorder ...
Filter using SearchView in RecyclerView: • Filter RecyclerView us...
MultiView RecyclerView: • Multi view RecyclerVie...
---------------
What I use
---------------
Mouse: amzn.to/2O9RJtu
Keyboard: amzn.to/2qxajCU
Keyboard 2: amzn.to/2XDWH4X
Monitor: amzn.to/2pDg7dH
Processor: amzn.to/347WWIb
RAM: amzn.to/2QEkUqw
Graphics: amzn.to/33aBrF4
Microphone: amzn.to/2DabdI9
#yoursTRULY #tutorial #howto #android

Пікірлер: 21
@harshnarwariya2935
@harshnarwariya2935 Жыл бұрын
Thanks, brother, for your nice explanation. I was wondering, "What's the difference between set and update?" and your explanation made me understand this.
@mafiacodes
@mafiacodes Жыл бұрын
Glad it was helpful!
@shubhsahu4813
@shubhsahu4813 2 жыл бұрын
Thank you so much
@mafiacodes
@mafiacodes 2 жыл бұрын
Subscribe Like Share
@nareshns7738
@nareshns7738 2 жыл бұрын
It's easy to update in particular Id...but how to update particular doc with any Id which is unique...
@errinwright
@errinwright 3 жыл бұрын
How do you update a document under a currently logged in user? .doc(currentuser), .update??
@eFortsHub
@eFortsHub 3 жыл бұрын
Thanks a lot
@DjonieCash
@DjonieCash 2 жыл бұрын
thank you! your video really help my case. do you have a video that explain how to add "start collection". success for you.
@mafiacodes
@mafiacodes 2 жыл бұрын
I do not understand "start collection"
@DjonieCash
@DjonieCash 2 жыл бұрын
@@mafiacodes i mean subcollection.. but i already found the way. inspired by your video. and now i'm looking for how to retrieve subcollection. dou you have any tutorial about subcollection? thank you, sir.
@NadeemKhan-qm1md
@NadeemKhan-qm1md 4 жыл бұрын
really great and genius you are...and want to learn a lot from you...of java and android.....pls make maximum apps ....thanks
@mafiacodes
@mafiacodes 4 жыл бұрын
Thanks subscribe like share
@koshurcoder
@koshurcoder 3 жыл бұрын
Sir Thank you so much for this helpful video. I would like to know your are passing hardcoded document path in Update, how to automaticaly fetch the required document and and then update?
@mafiacodes
@mafiacodes 3 жыл бұрын
watch the series its there, this video was demonstration of how update and set differ, its there in the series, what ur asking for: kzbin.info/www/bejne/nWKah6R7j7yAbpI kzbin.info/www/bejne/p5fZoICumsmNZ7s
@FilmsSaaveON
@FilmsSaaveON 3 жыл бұрын
What a great explanation. Can I use merge for add 2 numbers? I mean the actual number in the field plus a new number like: Field: 'Wins' and an update with +1 win to the field. Or I have to get into a variable the saved number and then update the field with the variable+1?
@mafiacodes
@mafiacodes 3 жыл бұрын
Update +1 ✅
@FilmsSaaveON
@FilmsSaaveON 3 жыл бұрын
@@mafiacodes just +1 instead of a variable? 😮 .put("Wins", +1) ?
@mafiacodes
@mafiacodes 3 жыл бұрын
Increment I mean
@DanaiKamvoussiora
@DanaiKamvoussiora 4 жыл бұрын
I have a question! What if I want to update the current user's info but I want to let the user change it him/her self? I need the document Id for this user that you hard-copied from the console. Is there a way to get it? Great video!
@mafiacodes
@mafiacodes 4 жыл бұрын
If u want to change that is the admin (incase that is what you want) then u can use the admin sdk. If the current user wants his uid then he/she can get his uid easily using admin.auth.currentuser.uid. In case of any doubt ping me back.
@somethingviral1937
@somethingviral1937 4 жыл бұрын
yup....use collectionReference with where cluase....put userId in it and then in querydocumentsnapshot get the current login user document and apply same update ftn
Firestore | Delete document and Batch writes
7:00
Mafia Codes
Рет қаралды 7 М.
Firebase Firestore | Security Rules
23:14
Mafia Codes
Рет қаралды 17 М.
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 45 МЛН
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 35 МЛН
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 1,4 МЛН
Firestore | Reading documents
14:35
Mafia Codes
Рет қаралды 10 М.
Algolia Firestore Instant Search
9:53
Fireship
Рет қаралды 49 М.
Cloud Firestore Pricing | Get to know Cloud Firestore #3
16:23
Top 10 Emerging Technologies of 2024 (According to Science)
10:45
How to store data in Firestore Flutter - Cloud Firestore 2023
13:08
Coding With T
Рет қаралды 89 М.
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 45 МЛН