-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
When I use where() or orderBy() separately that is working fine but when I used combinedly it returns an empty result set. Can anyone tell me why I get this result?
this.authService.afs
.collection("boards", ref => {
return ref
.orderBy('expiryDate')
.where('moderatorId', '==', this.authService.userId)
})
.snapshotChanges()
.pipe(
map(actions =>
actions.map(a => {
const data = a.payload.doc.data();
const id = a.payload.doc.id;
return { id, ...data };
})
),
catchError(() => of([]))
).subscribe(boards => {
console.log(boards);
this.userBoardBehav.next(boards);
this.loadingSubject.next(false);
});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
