title: Why KeyValuePair missing values while fetching documents using Query in Firebase Firestore in Unity3d?
body: <p>I have collection like this</p>
  <p><a href="https://i.stack.imgur.com/nApaU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nApaU.png" alt="enter image description here" /></a></p>
  <p>I am trying to get name and score for Leaderboard but score is missing for first name as shown below</p>
  <p><a href="https://i.stack.imgur.com/C2QNB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C2QNB.png" alt="enter image description here" /></a></p>
  <p>Here is my code:</p>
  <pre><code>public void GetLeaderboardData()
      {
  
          Firebase.Firestore.Query allUsersQuery = db.Collection(&quot;users&quot;).OrderByDescending(&quot;timestamp&quot;).Limit(20);
          allUsersQuery.GetSnapshotAsync().ContinueWithOnMainThread(task =&gt; {
              QuerySnapshot allUsersQuerySnapshot = task.Result;
              foreach (DocumentSnapshot documentSnapshot in allUsersQuerySnapshot.Documents)
              {
                  //Debug.Log (String.Format (&quot;Document data for {0} document:&quot;, documentSnapshot.Id));
                  Dictionary&lt;string, object&gt; user = documentSnapshot.ToDictionary();
                  foreach (KeyValuePair&lt;string, object&gt; pair in user)
                  {
                      Debug.Log(String.Format(&quot;{0}: {1}&quot;, pair.Key, pair.Value));
  
                      if (pair.Key == &quot;score&quot;)
                      {
                          score = (string)pair.Value;
                      }
  
                      if (pair.Key == &quot;name&quot;)
                      {
                          uname = (string)pair.Value;
                          GameObject tBar = Instantiate(postPrefab.gameObject, transform.position, transform.rotation);
                          tBar.transform.SetParent(PostParent, false);
                          tBar.transform.GetChild(0).GetComponent&lt;Text&gt;().text = score;
                          tBar.transform.GetChild(2).GetComponent&lt;Text&gt;().text = uname;
                          tBar.gameObject.name = documentSnapshot.Id;
                      }
                  }
              }
          });
      }
  </code></pre>
  <p>What I am doing wrong? Can anyone help Please?</p>