I’ve got a Firebase login with Facebook working properly and I’d like to create one collection with different values, each of them with an ID which would be the user ID.
So far I found some ways to create these values but either way there are not related with the user or is using the old ddbb (realtime one). This new ddbb still on beta and there is not too much documentation with Ionic.
With this the user is also create on my ddbb.
So let’s say now that on a different page, with this user logged I want to create a new element on my collection that I already created using Cloud Firestore:
I extended Angular Firestore with a provider that has methods like ReadDocumentOnce, UpsertDocument, DownloadCollectionOnce, DownloadCollectionAndListenForValueChanges. So I only had to struggle with the AngularFire2 Firestore API in that one place, and everywhere else in the app I inject my extended provider.