Firebase Firestore: Sorting, Filtering, and Querying in iOS | Firebase Bootcamp #13

  Рет қаралды 5,377

Swiftful Thinking

Swiftful Thinking

Күн бұрын

Learn how to effectively sort, filter, and query your Firebase Firestore documents in your iOS app with this comprehensive video guide. Master the art of organizing and accessing your data with ease and efficiency.
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno
00:00 Firestore Queries: Sort & Filter
03:23 Updating UI
07:05 Sorting Products
11:19 Filtering Products
16:17 Coding Keys Hardcoding Strinigs
17:38 Complex queries (sorting + filtering)
25:22 Composite Indexes

Пікірлер: 20
@mrbrn20
@mrbrn20 4 ай бұрын
Learning so much in this Firebase series, going to be implementing Firebase/Firestore in my own personal app!
@michaelgrant2068
@michaelgrant2068 Жыл бұрын
Great video as always!
@andresraigoza2082
@andresraigoza2082 Жыл бұрын
Awesome, thank you so much!
@pakaponwiwat2405
@pakaponwiwat2405 Жыл бұрын
Thank you sooo much, mr. nick. 🙏
@chahsanjutt3986
@chahsanjutt3986 Жыл бұрын
Nice video great effort 🎉
@30guarino
@30guarino Жыл бұрын
Not going to lie your videos are really informative and clear ....Firebase should sponsor your videos lol...Peter Friese hope you're watching
@kdtechniquesofficial6153
@kdtechniquesofficial6153 Жыл бұрын
Nick's videos teach better than Firebase Tutorials. Then don't even explain this deeply. They do it like a robot. lol
@justlife8208
@justlife8208 Жыл бұрын
AWESOME video but agh 11:24 I needed to populate and grab all the categories without declaring each in an enum!
@sourPollo
@sourPollo Жыл бұрын
Please make a video on updating a document using the auto generated Id from Firestone. 😅
@Rafael-ol1ie
@Rafael-ol1ie Жыл бұрын
Can you teach how could I apply nested filters? Like filter by smartphone and price range between 500 ~ 700 at same time for example
@ThePhotodiver
@ThePhotodiver Жыл бұрын
For some reason I do not get an error in the console with the link to the Firebase console. I tried to create the index manually, but that doesn't seem to work.
@ericsousa9656
@ericsousa9656 Жыл бұрын
I had the same problem
@kdtechniquesofficial6153
@kdtechniquesofficial6153 Жыл бұрын
I sense you will make a video that involves "Stripe" in the future.
@30guarino
@30guarino Ай бұрын
Hey Nick, How would we prevent fetching the same product after it already appeared on the screen to prevent excessive reads from Firestore? Some context if you use print statements that are fetched it shows each time a new filter appears. If I don't hear from you here I'll hit up discord
@SwiftfulThinking
@SwiftfulThinking Ай бұрын
It depends on your implementation. You could have a local check “if product is loaded don’t fetch”. Or cache the query locally and check the cache. I’m not sure if that helps… This is definitely an area that I wouldn’t be hyper concerned about prematurely optimizing.
@30guarino
@30guarino Ай бұрын
@@SwiftfulThinking yeah was thinking that as well about prematurely optimizing… I’m reading too many horror stories about firebase charging users an extreme amount of money because of excessive of reads etc … lol … thanks for the advice
@bomen.s3521
@bomen.s3521 11 ай бұрын
i think this is very fast method to use the DB, but the DB cost is will not too much ?
@dillontrembath
@dillontrembath 8 күн бұрын
brother go to bed!
@lincolndickerson1293
@lincolndickerson1293 Жыл бұрын
About 17 minutes in String is added to the CodingKeys enum. This is not necessary. Once the CodingKeys enum is exposed in our code we have access to .stringValue. So in our code we can write Product.CodingKeys.title.stringValue. I discovered this while working from the video. Thanks
@XuanQuynhLexuanquynh
@XuanQuynhLexuanquynh 4 ай бұрын
Learning so much in this Firebase series, going to be implementing Firebase/Firestore in my own personal app!
Firestore Data Modeling - Five Cool Techniques
11:44
Fireship
Рет қаралды 253 М.
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 24 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
Security Rules! 🔑 | Get to know Cloud Firestore #6
22:39
Firebase
Рет қаралды 268 М.
Connect Firebase to Xcode: A Step-by-Step Tutorial | Firebase Bootcamp #1
21:07
Cloud Firestore Get Data (and other operations) with SwiftUI
41:31
CodeWithChris
Рет қаралды 41 М.
Sort, Filter, and Map data arrays in Swift | Continued Learning #13
28:36
Swiftful Thinking
Рет қаралды 20 М.
Firebase FirestoreUI | Indexing for Sorting and Ordering
7:30
Mafia Codes
Рет қаралды 22 М.
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 34 М.
How To Transfer Firestore Data From One Project To Another
14:39
JonnyB Codes
Рет қаралды 17 М.
How to use @ViewBuilder in SwiftUI | Advanced Learning #9
24:01
Swiftful Thinking
Рет қаралды 25 М.