title: Use an array of values to query Firestore and setup a snapshot listener
body: <p>Here is my problem:</p>
  <p>I have a firestore collection that has a number of documents.  There are about 500 documents generated/updated every hour and saved to the collection.</p>
  <p>I would like to query the collection and setup a real-time snapshot listener for a subset of document IDs, that are provided by the client.</p>
  <p>I think maybe I could to something like this (this syntax is likely not correct...just trying to get a feel for if it's even possible...but isn't the &quot;in&quot; limited to an array of 10 items? ):</p>
  <pre><code>const subbedDocs = [&quot;doc1&quot;,&quot;doc2&quot;,&quot;doc3&quot;,&quot;doc4&quot;,&quot;doc5&quot;]
  docsRef.where('docID', 'in', subbedDocs).onSnapshot((doc) =&gt; {
     handleSnapshot(doc);
     });
  
  </code></pre>
  <p>I'm sorry, that code probably doesn't make sense....I'm still trying to learn all the ins and outs of Firestore.</p>
  <p>Essentially, what I am trying to do is take an array of ID's and setup a <strong>.onSnapshot</strong> listener for those ID's.  This list of IDs could be upwards of 40-50 items.  Is this even possible?  I am trying to avoid just setting up a listener on the whole collection and filtering out things I am not &quot;subscribed&quot; too as that seems wasteful from a resources perspective.</p>