Firebase Firestore Pagination, Limits and Aggregations for iOS | Firebase Bootcamp #14

  Рет қаралды 4,934

Swiftful Thinking

Swiftful Thinking

Күн бұрын

Learn how to implement pagination, limits, and aggregations for documents in Firebase Firestore in your iOS app. This video tutorial covers everything you need to know to get started, from setting up the database to creating queries that return specific subsets of data. Improve your Firestore skills and build better apps with this in-depth guide.
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno
00:00 Firestore Pagination, Limits, Aggregations
03:59 Adding a limit to a query
07:11 Updating the UI
11:03 Simple pagination
17:49 Complex pagination
26:58 Pagination w/ UI
40:52 Switching between queries
45:18 Clean code = good dev :)
49:07 Aggregations

Пікірлер: 29
@aliabraham1725
@aliabraham1725 Жыл бұрын
Finally! Someone’s talking about pagination with swiftui and including Code! Thank you!
@gregas3068
@gregas3068 11 ай бұрын
Again one of the best course videos. Love how you pack the content of your videos into really practical units. Keep doing it. I've been through this infinite scrolling on Android + FB and would love to have some tutorials like these. It took me forever to figure it all by myself. Thank you . .
@vojtechkalivoda8455
@vojtechkalivoda8455 Жыл бұрын
This bootcamp adds so much value for intermediate developers like me and others for sure, thanks for the good content 🔥
@andresraigoza2082
@andresraigoza2082 Жыл бұрын
This is so Amazing! Thank you so much Nick for taking your time to create this amazing content 👏🏻
@kdtechniquesofficial6153
@kdtechniquesofficial6153 Жыл бұрын
Learned a lot. Not just about Firebase but also how to code better. Thank You, Nick Angel. ❤
@lincolndickerson1293
@lincolndickerson1293 Жыл бұрын
👏 Amazing! Thank you so much for this series. Your content is superb.
@efecetin8475
@efecetin8475 9 ай бұрын
you helped me before and now AGAIN. Thank you!!!
@mariosanz.
@mariosanz. 11 ай бұрын
Amazing bootcamp Nick, thank you so much. Just a quick fix on this video. At 48:45 you missed the ".limit(to: count)" in the new condensed return statement. Otherwise, we are not really paginating and all the products are loaded at once.
@dimaipatjj4392
@dimaipatjj4392 Ай бұрын
Thanks, Nic!
@hakeemdeggs9117
@hakeemdeggs9117 8 ай бұрын
amazing!
@efecetin8475
@efecetin8475 9 ай бұрын
THANK YOUUUUUU!!!!
@lincolndickerson1293
@lincolndickerson1293 Жыл бұрын
You are not going too deep, KZfaq gives use the ability to coffee you up when needed, the expresso buttons 1.25, 1.5, 1.75, 2.0 😂Seriously these topics have many parts and pieces, I for one, love the depth.
@diytutorials6824
@diytutorials6824 Жыл бұрын
Hi! Is it possible to use Firebase and remote push notifications without subscribing to a change? Like if I wanted to send out daily notifications with changing content (hence can't do local notifications) - could I just set up daily notifications that get data from the database?
@CulbladeStudio
@CulbladeStudio Жыл бұрын
Shouldn't there be a .limit in the final getAllProducts query?
@EddieCasady
@EddieCasady 4 ай бұрын
Very nice. How would you achieve pagination with listeners like in a social network app? Will you have a listener for every page of, let's say, 20 documents? and how will you keep track of every listener and real time updates? or you just fetch pages statically and then add 1 single sitter for the whole list? What is the best practice?
@kimsanov
@kimsanov 24 күн бұрын
Thanks for video. Why didnt you edit out all hiccups and repetitions of your naration?
@CodeSchoolForGeeks
@CodeSchoolForGeeks Жыл бұрын
Algolia Extension search. Make a video please.
@melmandaragrows
@melmandaragrows Жыл бұрын
Hey nick, I had commented on the codable video from the playlist. I’m getting errors with the custom encoder and decoder😢
@SwiftfulThinking
@SwiftfulThinking Жыл бұрын
I would check your code, it’s really easy to use the wrong “encoding” vs “decoding” keywords since the functions are so similar
@melmandaragrows
@melmandaragrows Жыл бұрын
@@SwiftfulThinking I quadruple checked. it still says the same thing. Is there an email address I can send a screenshot to of the code?
@kdtechniquesofficial6153
@kdtechniquesofficial6153 Жыл бұрын
Hey, Nick. Did you mean the following code (25:36) where we don't have to import FirebaseFirestore in every view? Please correct me if I've got it wrong. Thanks mate. import FirebaseFirestore struct LastDocumentSnapshot { var lastDocument: DocumentSnapshot? init(_ lastDocument: DocumentSnapshot) { self.lastDocument = lastDocument } } private var lastDocument: LastDocumentSnapshot = .init(nil)
@30guarino
@30guarino Жыл бұрын
I'm sure you already figured it out , but Yes ...how you wrote it is perfect....this way you can use it if want to use pagination in a view with list of users, products, or chat conversations , etc...
How to use Protocols in Swift | Advanced Learning #15
28:37
Swiftful Thinking
Рет қаралды 15 М.
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 15 МЛН
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 50 МЛН
小蚂蚁被感动了!火影忍者 #佐助 #家庭
00:54
火影忍者一家
Рет қаралды 32 МЛН
Get Started with Firebase Firestore in iOS | Firebase Bootcamp #8
39:06
Swiftful Thinking
Рет қаралды 11 М.
Adding Agentic Layers to RAG
19:40
AI User Group
Рет қаралды 19 М.
How to use Dependency Injection in SwiftUI | Advanced Learning #16
35:32
Swiftful Thinking
Рет қаралды 27 М.
Firebase vs Supabase - I Built The Same App With Both
6:21
Your Average Tech Bro
Рет қаралды 101 М.
Deep Dive on LINQ with Stephen Toub
1:23:59
dotnet
Рет қаралды 57 М.
How to show live Firebase data in your Flutterflow app
27:20
FlutterFlow
Рет қаралды 107 М.