While using Angular Firestore we can use optional queries like this:
this.afs.collection(this.databaseCollection, ref => { return query ? query : ref; })
Is there something like this for the Admin SDK (firestore) as well? Or do I need to create a separate function for every query?
I would like to have one method (like above) where we can get all the documents in the collection if there is no query given, otherwise use the query.