All Questions
141 questions
0
votes
0
answers
164
views
@angular/fire modular equivalent to "compat" code to listen to snapshotChanges
How would I rewrite this function in the latest "modular" version of angular firestore?
getLatestEntries(limit = 5) {
return this.db.collectionGroup('Entries', ref => ref.orderBy('...
0
votes
1
answer
112
views
Combine multiple Observable subscription results in Angular with forkJoin
(1) I have a request in Firebase firestore where I get several 'nomBu' strings from a collection. OK
(2) Then, with these recovered 'nomBu' strings, I make a second request to get metedata from ...
0
votes
2
answers
55
views
Combine multiple Observable subscription results in Angular
(1) I have a request in Firebase firestore where I get several 'nomBu' strings from a collection. OK
(2) Then, with these recovered 'nomBu' strings, I make a second request to get metedata from ...
0
votes
2
answers
73
views
Combine Observable subscription results in Angular
(1) I have a request in Firebase firestore where I get several 'nomBu' strings from a collection. OK
(2) Then, with these recovered 'nomBu' strings, I make a second request to get metedata from ...
0
votes
1
answer
37
views
waiting for the result of the subscription then send data after
I am using angular to connect to firebase and I want to get the data from array property, then push to the array the new data and finally send the updated array to database after
first I tried to do ...
0
votes
1
answer
1k
views
Subscribe to an observable from HttpClient's GET method
I'm learning Angular and the course is outdated. I'm writing a very simple app which shows a list of people created from Persona class which receives the parameters nombre and apellido.
The code is ...
1
vote
2
answers
835
views
How to get Firestore collectionGroup datas as an Observable in Angular?
From the https://firebase.google.com/docs/firestore/query-data/queries documentation snippet, Im unable to get the results as an Observable
import { collectionGroup, query, where, getDocs } from "...
0
votes
2
answers
47
views
Firebase .equalto function resolve before executing rest of the code
I am trying to use this service getTodaysRoute() where I figure out what is today's route node key using .equalTo and from what I understand then I have to use this .on function snapshot from which ...
1
vote
3
answers
517
views
Extract distinct records from a Firestore collection query
I'm looking for a hand with making an observable contain only distinct records.
I'm using the observable in an angular mat-autocomplete with an async pipe and querying firebase with the user's typed-...
0
votes
0
answers
144
views
Observable<> is not assignable to type Observable<>
I am trying to create a Task Manager app where the user can click on a certain project and view the tasks (project info) under the said project.
The project is saved in firestore and being fetched ...
0
votes
1
answer
95
views
AngularFire storage listAll build array of promises and forkjoin
I'm looking for a hand with creating an array of promises and executing them all with RXJS forkjoin to build a result set.
I'm using AngularFire's storage module to return all the uploaded files in a ...
0
votes
1
answer
397
views
Returning Observable Metadata Instead of Expected Objects on nested snapshotchanges maps
I'm trying to resolve a user ID to a displayname and add it to a service return. It seems like it's working through console.log, but the actual return in the calling TS file returns observable ...
1
vote
1
answer
62
views
Use an Observable working with another Observable
I'm trying to show information, like that :
user-settings.component.html
<div *ngIf="(_user | async) as user">
<div fxLayoutAlign="center center">
<h3>{{ ...
2
votes
1
answer
37
views
Error chaining from a service to component for a http.post subscription
I am using firebase to authenticate a sign in and then send a request to my backend to create a custom session token for the logged in user. For this, I send in a function call from my component.ts to ...
0
votes
1
answer
367
views
Angular Service BehaviorSubject displays duplicate data using Async Pipe
First, I have a service - ContractorsService - with a function getContractors that makes a Firebase Firestore call to the contractors db using the AngularFire method.
I used pipe to first switchMap ...