Cloud Firestore deep queries and soft deletions with Angular

preview_player
Показать описание

We're going to cover 2 ways to work with deep queries in Firebase Cloud Firestore. Firebase likes to call their queries "shallow" or "deep" depending on if the documents have entire documents inside (subcollections).

We'll explore how to make the queries, how to delete the documents at depth, and why we shouldn't delete at all. There's a better approach called "soft deletions", and we'll see how to do a soft delete to our deep collections of documents.

Timestamps:
0:00 - intro
0:24 - build Firestore subcollection
1:38 - simple Angular app
3:53 - deep queries
6:47 - soft delete

Thumbnail Photo by Francesco Ungaro from Pexels
Рекомендации по теме
Комментарии
Автор

I love that you used Harry Potter to illustrate storage size limits! :)

KCHunter
Автор

Excellent tutorial, very clear and helpful. Just what I was after.

JohnLynagh
Автор

Does this mean I CANNOT use Firestore for my customers in Europe? GDPR (general data protection regulation) requires you to delete any personal data related to European Citizens upon their unsubscription from your services.

uranfetahu
Автор

hello! how do you create a subcollection in code? Thank you!

kimoyjl
Автор

One small thing that would have been nice to have been included is the code to update the isDeleted to true.

JohnLynagh