title: Firestore query returning empty snapshot
body: <p>I have a node websocket listener set to query some data from my database. Currently however the query returns an empty snapshot even though I know that the query should return something.</p>
  
  <p>I'm making a simple node based forum (although I'm pretty new to Node so it's not that good lol) and I'm trying to query post data from the server to send back to the client. I've tried checking to see if my post references were correct and double checked that the values I'm querying exist within the collection. I've also already checked that the data was sent through the socket correctly so I'm at a loss.</p>
  
  <pre class="lang-js prettyprint-override"><code>
  let query = db.collection('posts').where('id','==',postID);
  query.get().then(snapshot =&gt; {
        if (snapshot.empty) {
          client.emit('resPost', 'Failed');
          return;
        }
        snapshot.forEach(doc =&gt; {
          console.log(doc.data());
          client.emit('resPost', doc.data());
        });
  });
  </code></pre>
  
  <p>When I load the post page I get the response tied to the empty snapshot.</p>
  
  <p>Edit: As suggested by @Phil I've included a log for the <code>postID</code> variable.</p>
  
  <pre class="lang-js prettyprint-override"><code>console.log('postID', typeof postID, JSON.stringify(postID))
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>postID string "0"
  </code></pre>
  
  <p>Here's a screenshot of the console if needed. The ClientID is the ID of the websocket connection.
  <a href="https://imgur.com/a/MdtwEvu" rel="nofollow noreferrer">https://imgur.com/a/MdtwEvu</a></p>