Skip to content

Instantly share code, notes, and snippets.

@gavilanch
Last active Jun 25, 2019
Embed
What would you like to do?
getTodos(userId: string): Observable<firebase.firestore.QuerySnapshot> {
 return this.db.collection<Todo>(this.todoCollectionName, ref =>
ref.where("userId", "==", userId).orderBy('lastModifiedDate', 'desc'))
.get();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment