Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11601

Firestore: Multiple conditional where clauses

$
0
0

For example I have dynamic filter for my list of books where I can set specific color, authors and categories.This filter can set multiple colors at once and multiple categories.

   Book > Red, Blue > Adventure, Detective.

How can I add "where" conditionally?

  firebase    .firestore()    .collection("book")    .where("category", "==", )    .where("color", "==", )    .where("author", "==", )    .orderBy("date")    .get()    .then(querySnapshot => {...

Viewing all articles
Browse latest Browse all 11601

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>