No video

Firestore | Reading documents

  Рет қаралды 10,824

Mafia Codes

Mafia Codes

4 жыл бұрын

In this video you will learn how to read documents from #firebase #firestore database.
We’ll be also making queries to our database.
⭐ 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

Пікірлер: 30
@yashsingadiya9850
@yashsingadiya9850 Жыл бұрын
Perfect video for fetching data from database in the entire KZbin You are great at explaining and going into the depth in your subject I am so glad to finally complete this topic i was searching to get only one field Only you showed how to do it Thanks bro
@amit1k617
@amit1k617 Жыл бұрын
Thank you very much!! everything I wanted to do was there, and you explained it so clearly!
@paragbharadia2895
@paragbharadia2895 2 жыл бұрын
very very valuable video! thank you sir!
@sharyerilyas898
@sharyerilyas898 3 жыл бұрын
Very good Video .thats all i want.😊😊😊😊😊
@gurubhai4918
@gurubhai4918 Жыл бұрын
I want to cater to multiple restaurant clients, should i crea one firestore database with one top level collection for each client or should I create one firestore database for each client? each restaurant admin/owner should see their unique dashboard when they login to the Android app
@bunhengborath7698
@bunhengborath7698 3 жыл бұрын
nice bro keep it up
@sat_talk
@sat_talk 3 жыл бұрын
Thanks sir.. what would be the code when we want to show some textview for admin only and for all other users no textview appear?.. I don't the firebase command..but know the logic.. means if ( currently logged user is not equal to admin user ) { hide the textview} else { show textview} Pl. sir what would be firebase command? for above logic?
@amruthachennepalli
@amruthachennepalli 2 жыл бұрын
Can you make video on how create get req to read firestore collection please
@MrRahulmalik
@MrRahulmalik 4 жыл бұрын
Make a video on creating Users collection and storing the UID and check if the user is a premium member or not in real time database Cheers 🍻
@mafiacodes
@mafiacodes 4 жыл бұрын
I’ll do it sometime later
@bhupeshpattanaik7150
@bhupeshpattanaik7150 3 жыл бұрын
How to copy the received data to local variable , as the function is asynchronous and return future string but my local variable is of type string 🤷🏻‍♂️🤔
@mafiacodes
@mafiacodes 3 жыл бұрын
u have to copy that inside the async function
@bhupeshpattanaik7150
@bhupeshpattanaik7150 3 жыл бұрын
@@mafiacodes for example: String x; Void a() async { x = 'hello'; } a(); Print ( x ) ; This says x is null and does not assigned it ,
@mafiacodes
@mafiacodes 3 жыл бұрын
Yes that’s true, you need to use a listener
@bhupeshpattanaik7150
@bhupeshpattanaik7150 3 жыл бұрын
@@mafiacodes ohk 😀 , thanks
@CortezMK
@CortezMK 3 жыл бұрын
how do i get the document id's
@mafiacodes
@mafiacodes 3 жыл бұрын
doc.id
@akashpatil4613
@akashpatil4613 3 жыл бұрын
Bro how can we get the total no of the document in the collection.
@mafiacodes
@mafiacodes 3 жыл бұрын
this link would do justice instead of me simply telling you how to count the size... stackoverflow.com/questions/46554091/cloud-firestore-collection-count
@akashpatil4613
@akashpatil4613 3 жыл бұрын
@@mafiacodes Thanks for replying.. Although I already that code tried that but it is showing an error on the "then" keyboard. And I wanted to show that on my XML.
@satyampal5299
@satyampal5299 4 жыл бұрын
hey can u help me with something?
@mafiacodes
@mafiacodes 4 жыл бұрын
Yeah sure like what?
@satyampal5299
@satyampal5299 4 жыл бұрын
@@mafiacodes i have been trying to retrieve document ids from a collection but couldn't store it in any array list can u help me with that? I have retrieved and loged document ids but whenever i try to store it in an array list it never gets added.
@mafiacodes
@mafiacodes 4 жыл бұрын
Loop through the snapshots nd store
@satyampal5299
@satyampal5299 4 жыл бұрын
@@mafiacodes yes i tried the same thing but it didn't work .
@satyampal5299
@satyampal5299 4 жыл бұрын
@@mafiacodes i try to pass the list array to the list view adaptor and it never shows anything on the list view
Firestore | Sorting and Limiting documents
8:31
Mafia Codes
Рет қаралды 9 М.
Firebase Firestore | Security Rules
23:14
Mafia Codes
Рет қаралды 17 М.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 154 МЛН
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 12 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 56 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 14 МЛН
Advanced offline caching techniques in Cloud Firestore
12:34
Firebase
Рет қаралды 17 М.
Fetch/Get All Data from Cloud Firestore in TABLE using JavaScript
12:43
The Amazing Codeverse
Рет қаралды 7 М.
HOW TO FETCH A DOCUMENT FROM FIRESTORE | ANDROID | IN JAVA
13:33
WhoozTheDev
Рет қаралды 1,3 М.
Firebase - Back to the Basics
25:23
Fireship
Рет қаралды 587 М.
I tried 5 Firebase alternatives
10:31
Fireship
Рет қаралды 780 М.
React Todo App With Firebase v9 / CRUD Functionality
58:16
Code Commerce
Рет қаралды 50 М.
Vue 3 & Firebase 9 Tutorial (Cloud Firestore)
1:03:47
Make Apps with Danny
Рет қаралды 50 М.
React Firebase Tutorial | AUTH - CRUD - Image Upload
1:27:43
Lama Dev
Рет қаралды 209 М.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 154 МЛН