title: firebase where() not returning that docs data?
body: <p>Here's what I'm trying to do, I'm trying to get the username of a user. I have the users email so I'm trying to search documents to find the document where that is the email, then get the username from that.</p>
  <p>Code:</p>
  <pre><code>useEffect(() =&gt; {
          auth().onAuthStateChanged((user) =&gt; {
              if (user) {
                  // User logged in already or has just logged in.
                  updateUser(user.email)
              } else {
                  // User not logged in or has just logged out.
              }
          });
  
          //get the username here
          firestore().collection('users').where(&quot;email&quot;, &quot;==&quot;, userCurrent).get().then((doc) =&gt; {
              console.log(doc)
          }).catch((error) =&gt; { console.log(error) })
      })
  </code></pre>
  <p>when I try and do doc.data(), i get doc.data is not a function. When I try and remove that and just call doc to see what is printed out, I get this massive data dump:</p>
  <pre><code>vc {
    &quot;Bf&quot;: Ht {
      &quot;Qt&quot;: $t {
        &quot;data&quot;: Nt {
          &quot;i&quot;: [Function i],
          &quot;root&quot;: _class {
            &quot;size&quot;: 0,
          },
        },
        &quot;i&quot;: [Function i],
      },
      &quot;Ut&quot;: Gt {
        &quot;Mt&quot;: Nt {
          &quot;i&quot;: [Function i],
          &quot;root&quot;: _class {
            &quot;size&quot;: 0,
          },
        },
        &quot;Ot&quot;: Nt {
          &quot;i&quot;: [Function anonymous],
          &quot;root&quot;: _class {
            &quot;size&quot;: 0,
          },
        },
        &quot;i&quot;: [Function anonymous],
      },
      &quot;Wt&quot;: true,
      &quot;docChanges&quot;: Array [],
      &quot;docs&quot;: Gt {
        &quot;Mt&quot;: Nt {
          &quot;i&quot;: [Function i],
          &quot;root&quot;: _class {
            &quot;size&quot;: 0,
          },
        },
        &quot;Ot&quot;: Nt {
          &quot;i&quot;: [Function anonymous],
          &quot;root&quot;: _class {
            &quot;size&quot;: 0,
          },
        },
        &quot;i&quot;: [Function anonymous],
      },
      &quot;fromCache&quot;: false,
      &quot;jt&quot;: false,
      &quot;query&quot;: zn {
        &quot;an&quot;: Array [
          ps {
            &quot;dir&quot;: &quot;asc&quot;,
            &quot;field&quot;: $ {
              &quot;offset&quot;: 0,
              &quot;segments&quot;: Array [
                &quot;__name__&quot;,
              ],
              &quot;t&quot;: 1,
            },
          },
        ],
        &quot;cn&quot;: At {
          &quot;Z&quot;: &quot;users|f:email==|ob:__name__asc&quot;,
          &quot;collectionGroup&quot;: null,
          &quot;endAt&quot;: null,
          &quot;filters&quot;: Array [
            _s {
              &quot;field&quot;: $ {
                &quot;offset&quot;: 0,
                &quot;segments&quot;: Array [
                  &quot;email&quot;,
                ],
                &quot;t&quot;: 1,
              },
              &quot;op&quot;: &quot;==&quot;,
              &quot;value&quot;: Object {
                &quot;stringValue&quot;: &quot;&quot;,
              },
            },
          ],
          &quot;limit&quot;: null,
          &quot;orderBy&quot;: Array [
            ps {
              &quot;dir&quot;: &quot;asc&quot;,
              &quot;field&quot;: $ {
                &quot;offset&quot;: 0,
                &quot;segments&quot;: Array [
                  &quot;__name__&quot;,
                ],
                &quot;t&quot;: 1,
              },
            },
          ],
          &quot;path&quot;: F {
            &quot;offset&quot;: 0,
            &quot;segments&quot;: Array [
              &quot;users&quot;,
            ],
            &quot;t&quot;: 1,
          },
          &quot;startAt&quot;: null,
        },
        &quot;collectionGroup&quot;: null,
        &quot;endAt&quot;: null,
        &quot;filters&quot;: Array [
          _s {
            &quot;field&quot;: $ {
              &quot;offset&quot;: 0,
              &quot;segments&quot;: Array [
                &quot;email&quot;,
              ],
              &quot;t&quot;: 1,
            },
            &quot;op&quot;: &quot;==&quot;,
            &quot;value&quot;: Object {
              &quot;stringValue&quot;: &quot;&quot;,
            },
          },
        ],
        &quot;limit&quot;: null,
        &quot;on&quot;: &quot;F&quot;,
        &quot;path&quot;: F {
          &quot;offset&quot;: 0,
          &quot;segments&quot;: Array [
            &quot;users&quot;,
          ],
          &quot;t&quot;: 1,
        },
        &quot;rn&quot;: Array [],
        &quot;startAt&quot;: null,
      },
    },
    &quot;Lf&quot;: zn {
      &quot;an&quot;: Array [
        ps {
          &quot;dir&quot;: &quot;asc&quot;,
          &quot;field&quot;: $ {
            &quot;offset&quot;: 0,
            &quot;segments&quot;: Array [
              &quot;__name__&quot;,
            ],
            &quot;t&quot;: 1,
          },
        },
      ],
      &quot;cn&quot;: At {
        &quot;Z&quot;: &quot;users|f:email==|ob:__name__asc&quot;,
        &quot;collectionGroup&quot;: null,
        &quot;endAt&quot;: null,
        &quot;filters&quot;: Array [
          _s {
            &quot;field&quot;: $ {
              &quot;offset&quot;: 0,
              &quot;segments&quot;: Array [
                &quot;email&quot;,
              ],
              &quot;t&quot;: 1,
            },
            &quot;op&quot;: &quot;==&quot;,
            &quot;value&quot;: Object {
              &quot;stringValue&quot;: &quot;&quot;,
            },
          },
        ],
        &quot;limit&quot;: null,
        &quot;orderBy&quot;: Array [
          ps {
            &quot;dir&quot;: &quot;asc&quot;,
            &quot;field&quot;: $ {
              &quot;offset&quot;: 0,
              &quot;segments&quot;: Array [
                &quot;__name__&quot;,
              ],
              &quot;t&quot;: 1,
            },
          },
        ],
        &quot;path&quot;: F {
          &quot;offset&quot;: 0,
          &quot;segments&quot;: Array [
            &quot;users&quot;,
          ],
          &quot;t&quot;: 1,
        },
        &quot;startAt&quot;: null,
      },
      &quot;collectionGroup&quot;: null,
      &quot;endAt&quot;: null,
      &quot;filters&quot;: Array [
        _s {
          &quot;field&quot;: $ {
            &quot;offset&quot;: 0,
            &quot;segments&quot;: Array [
              &quot;email&quot;,
            ],
            &quot;t&quot;: 1,
          },
          &quot;op&quot;: &quot;==&quot;,
          &quot;value&quot;: Object {
            &quot;stringValue&quot;: &quot;&quot;,
          },
        },
      ],
      &quot;limit&quot;: null,
      &quot;on&quot;: &quot;F&quot;,
      &quot;path&quot;: F {
        &quot;offset&quot;: 0,
        &quot;segments&quot;: Array [
          &quot;users&quot;,
        ],
        &quot;t&quot;: 1,
      },
      &quot;rn&quot;: Array [],
      &quot;startAt&quot;: null,
    },
    &quot;T_&quot;: null,
    &quot;Uf&quot;: null,
    &quot;metadata&quot;: Ec {
      &quot;fromCache&quot;: false,
      &quot;hasPendingWrites&quot;: false,
    },
    &quot;qf&quot;: null,
    &quot;vf&quot;: dc {
      &quot;Af&quot;: za {
        &quot;U&quot;: ft {
          &quot;database&quot;: &quot;(default)&quot;,
          &quot;projectId&quot;: &quot;goalsdev-7eb67&quot;,
        },
        &quot;ignoreUndefinedProperties&quot;: false,
        &quot;serializer&quot;: pe {
          &quot;U&quot;: ft {
            &quot;database&quot;: &quot;(default)&quot;,
            &quot;projectId&quot;: &quot;goalsdev-7eb67&quot;,
          },
          &quot;Ue&quot;: true,
        },
      },
      &quot;Ef&quot;: fc {
        &quot;cacheSizeBytes&quot;: 41943040,
        &quot;credentials&quot;: undefined,
        &quot;experimentalForceLongPolling&quot;: false,
        &quot;host&quot;: &quot;firestore.googleapis.com&quot;,
        &quot;ignoreUndefinedProperties&quot;: false,
        &quot;ssl&quot;: true,
        &quot;timestampsInSnapshots&quot;: true,
      },
      &quot;INTERNAL&quot;: Object {
        &quot;delete&quot;: [Function _delete],
      },
      &quot;Tf&quot;: Wr {
        &quot;Hc&quot;: [Function anonymous],
        &quot;Zc&quot;: [Function anonymous],
        &quot;auth&quot;: Object {
          &quot;addAuthTokenListener&quot;: [Function bound ],
          &quot;getToken&quot;: [Function bound ],
          &quot;getUid&quot;: [Function bound ],
          &quot;removeAuthTokenListener&quot;: [Function bound ],
        },
        &quot;currentUser&quot;: ti {
          &quot;uid&quot;: &quot;BDErkp3H7hbzyce1AVqiS0M6ObT2&quot;,
        },
        &quot;eu&quot;: 4,
        &quot;forceRefresh&quot;: false,
        &quot;tu&quot;: true,
      },
      &quot;_f&quot;: Ws {
        &quot;As&quot;: null,
        &quot;Es&quot;: false,
        &quot;Is&quot;: Array [],
        &quot;Ps&quot;: Array [],
        &quot;Rs&quot;: true,
        &quot;Ts&quot;: Array [],
        &quot;gs&quot;: Ds {
          &quot;En&quot;: null,
          &quot;In&quot;: 1604894779861,
          &quot;Tn&quot;: 0,
          &quot;_n&quot;: [Circular],
          &quot;dn&quot;: 1000,
          &quot;fn&quot;: &quot;async_queue_retry&quot;,
          &quot;mn&quot;: 60000,
          &quot;wn&quot;: 1.5,
        },
        &quot;ws&quot;: Promise {
          &quot;_40&quot;: 0,
          &quot;_55&quot;: Promise {
            &quot;_40&quot;: 0,
            &quot;_55&quot;: null,
            &quot;_65&quot;: 0,
            &quot;_72&quot;: null,
          },
          &quot;_65&quot;: 3,
          &quot;_72&quot;: null,
        },
        &quot;ys&quot;: [Function anonymous],
      },
      &quot;df&quot;: uc {
        &quot;Dh&quot;: Xr {
          &quot;Hu&quot;: Yr {
            &quot;au&quot;: Ia {
              &quot;Cl&quot;: &quot;https://firestore.googleapis.com&quot;,
              &quot;Dl&quot;: _t {
                &quot;U&quot;: ft {
                  &quot;database&quot;: &quot;(default)&quot;,
                  &quot;projectId&quot;: &quot;goalsdev-7eb67&quot;,
                },
                &quot;forceLongPolling&quot;: false,
                &quot;host&quot;: &quot;firestore.googleapis.com&quot;,
                &quot;persistenceKey&quot;: &quot;[DEFAULT]&quot;,
                &quot;ssl&quot;: true,
              },
              &quot;Nl&quot;: &quot;projects/goalsdev-7eb67/databases/(default)/documents&quot;,
              &quot;U&quot;: ft {
                &quot;database&quot;: &quot;(default)&quot;,
                &quot;projectId&quot;: &quot;goalsdev-7eb67&quot;,
              },
              &quot;forceLongPolling&quot;: false,
            },
            &quot;credentials&quot;: Wr {
              &quot;Hc&quot;: [Function anonymous],
              &quot;Zc&quot;: [Function anonymous],
              &quot;auth&quot;: Object {
                &quot;addAuthTokenListener&quot;: [Function bound ],
                &quot;getToken&quot;: [Function bound ],
                &quot;getUid&quot;: [Function bound ],
                &quot;removeAuthTokenListener&quot;: [Function bound ],
              },
              &quot;currentUser&quot;: ti {
                &quot;uid&quot;: &quot;BDErkp3H7hbzyce1AVqiS0M6ObT2&quot;,
              },
              &quot;eu&quot;: 4,
              &quot;forceRefresh&quot;: false,
              &quot;tu&quot;: true,
            },
            &quot;ku&quot;: false,
            &quot;serializer&quot;: pe {
              &quot;U&quot;: ft {
                &quot;database&quot;: &quot;(default)&quot;,
                &quot;projectId&quot;: &quot;goalsdev-7eb67&quot;,
              },
              &quot;Ue&quot;: true,
            },
          },
          &quot;Ju&quot;: Array [],
          &quot;Xu&quot;: Map {
            38 =&gt; pt {
              &quot;et&quot;: mt {
                &quot;timestamp&quot;: Object {
                  &quot;nanoseconds&quot;: 178070000,
                  &quot;seconds&quot;: 1604896308,
                },
              },
              &quot;lastLimboFreeSnapshotVersion&quot;: mt {
                &quot;timestamp&quot;: Object {
                  &quot;nanoseconds&quot;: 0,
                  &quot;seconds&quot;: 0,
                },
              },
              &quot;resumeToken&quot;: ct {
                &quot;M&quot;: &quot;
         –ÙæÒÐôì&quot;,
              },
              &quot;sequenceNumber&quot;: 109,
              &quot;target&quot;: At {
                &quot;Z&quot;: &quot;users|f:email==|ob:__name__asc&quot;,
                &quot;collectionGroup&quot;: null,
                &quot;endAt&quot;: null,
                &quot;filters&quot;: Array [
                  _s {
                    &quot;field&quot;: $ {
                      &quot;offset&quot;: 0,
                      &quot;segments&quot;: Array [
                        &quot;email&quot;,
                      ],
                      &quot;t&quot;: 1,
                    },
                    &quot;op&quot;: &quot;==&quot;,
                    &quot;value&quot;: Object {
                      &quot;stringValue&quot;: &quot;&quot;,
                    },
                  },
                ],
                &quot;limit&quot;: null,
                &quot;orderBy&quot;: Array [
                  ps {
                    &quot;dir&quot;: &quot;asc&quot;,
                    &quot;field&quot;: $ {
                      &quot;offset&quot;: 0,
                      &quot;segments&quot;: Array [
                        &quot;__name__&quot;,
                      ],
                      &quot;t&quot;: 1,
                    },
                  },
                ],
                &quot;path&quot;: F {
                  &quot;offset&quot;: 0,
                  &quot;segments&quot;: Array [
                    &quot;users&quot;,
                  ],
                  &quot;t&quot;: 1,
                },
                &quot;startAt&quot;: null,
              },
              &quot;targetId&quot;: 38,
              &quot;tt&quot;: 0,
            },
            40 =&gt; pt {
              &quot;et&quot;: mt {
                &quot;timestamp&quot;: Object {
                  &quot;nanoseconds&quot;: 178070000,
                  &quot;seconds&quot;: 1604896308,
                },
              },
              &quot;lastLimboFreeSnapshotVersion&quot;: mt {
                &quot;timestamp&quot;: Object {
                  &quot;nanoseconds&quot;: 0,
                  &quot;seconds&quot;: 0,
                },
              },
              &quot;resumeToken&quot;: ct {
                &quot;M&quot;: &quot;
         –ÙæÒÐôì&quot;,
              },
              &quot;sequenceNumber&quot;: 111,
              &quot;target&quot;: At {
                &quot;Z&quot;: &quot;users|f:email==e@mail.com|ob:__name__asc&quot;,
                &quot;collectionGroup&quot;: null,
                &quot;endAt&quot;: null,
                &quot;filters&quot;: Array [
                  _s {
                    &quot;field&quot;: $ {
                      &quot;offset&quot;: 0,
                      &quot;segments&quot;: Array [
               ...(truncated to the first 10000 characters)
  vc {
    &quot;Bf&quot;: Ht {
      &quot;Qt&quot;: $t {
        &quot;data&quot;: Nt {
          &quot;i&quot;: [Function i],
          &quot;root&quot;: _class {
            &quot;size&quot;: 0,
          },
        },
        &quot;i&quot;: [Function i],
      },
      &quot;Ut&quot;: Gt {
        &quot;Mt&quot;: Nt {
          &quot;i&quot;: [Function i],
          &quot;root&quot;: _class {
            &quot;size&quot;: 0,
          },
        },
        &quot;Ot&quot;: Nt {
          &quot;i&quot;: [Function anonymous],
          &quot;root&quot;: _class {
            &quot;size&quot;: 0,
          },
        },
        &quot;i&quot;: [Function anonymous],
      },
      &quot;Wt&quot;: true,
      &quot;docChanges&quot;: Array [],
      &quot;docs&quot;: Gt {
        &quot;Mt&quot;: Nt {
          &quot;i&quot;: [Function i],
          &quot;root&quot;: _class {
            &quot;size&quot;: 0,
          },
        },
        &quot;Ot&quot;: Nt {
          &quot;i&quot;: [Function anonymous],
          &quot;root&quot;: _class {
            &quot;size&quot;: 0,
          },
        },
        &quot;i&quot;: [Function anonymous],
      },
      &quot;fromCache&quot;: false,
      &quot;jt&quot;: false,
      &quot;query&quot;: zn {
        &quot;an&quot;: Array [
          ps {
            &quot;dir&quot;: &quot;asc&quot;,
            &quot;field&quot;: $ {
              &quot;offset&quot;: 0,
              &quot;segments&quot;: Array [
                &quot;__name__&quot;,
              ],
              &quot;t&quot;: 1,
            },
          },
        ],
        &quot;cn&quot;: At {
          &quot;Z&quot;: &quot;users|f:email==e@mail.com|ob:__name__asc&quot;,
          &quot;collectionGroup&quot;: null,
          &quot;endAt&quot;: null,
          &quot;filters&quot;: Array [
            _s {
              &quot;field&quot;: $ {
                &quot;offset&quot;: 0,
                &quot;segments&quot;: Array [
                  &quot;email&quot;,
                ],
                &quot;t&quot;: 1,
              },
              &quot;op&quot;: &quot;==&quot;,
              &quot;value&quot;: Object {
                &quot;stringValue&quot;: &quot;e@mail.com&quot;,
              },
            },
          ],
          &quot;limit&quot;: null,
          &quot;orderBy&quot;: Array [
            ps {
              &quot;dir&quot;: &quot;asc&quot;,
              &quot;field&quot;: $ {
                &quot;offset&quot;: 0,
                &quot;segments&quot;: Array [
                  &quot;__name__&quot;,
                ],
                &quot;t&quot;: 1,
              },
            },
          ],
          &quot;path&quot;: F {
            &quot;offset&quot;: 0,
            &quot;segments&quot;: Array [
              &quot;users&quot;,
            ],
            &quot;t&quot;: 1,
          },
          &quot;startAt&quot;: null,
        },
        &quot;collectionGroup&quot;: null,
        &quot;endAt&quot;: null,
        &quot;filters&quot;: Array [
          _s {
            &quot;field&quot;: $ {
              &quot;offset&quot;: 0,
              &quot;segments&quot;: Array [
                &quot;email&quot;,
              ],
              &quot;t&quot;: 1,
            },
            &quot;op&quot;: &quot;==&quot;,
            &quot;value&quot;: Object {
              &quot;stringValue&quot;: &quot;e@mail.com&quot;,
            },
          },
        ],
        &quot;limit&quot;: null,
        &quot;on&quot;: &quot;F&quot;,
        &quot;path&quot;: F {
          &quot;offset&quot;: 0,
          &quot;segments&quot;: Array [
            &quot;users&quot;,
          ],
          &quot;t&quot;: 1,
        },
        &quot;rn&quot;: Array [],
        &quot;startAt&quot;: null,
      },
    },
    &quot;Lf&quot;: zn {
      &quot;an&quot;: Array [
        ps {
          &quot;dir&quot;: &quot;asc&quot;,
          &quot;field&quot;: $ {
            &quot;offset&quot;: 0,
            &quot;segments&quot;: Array [
              &quot;__name__&quot;,
            ],
            &quot;t&quot;: 1,
          },
        },
      ],
      &quot;cn&quot;: At {
        &quot;Z&quot;: &quot;users|f:email==e@mail.com|ob:__name__asc&quot;,
        &quot;collectionGroup&quot;: null,
        &quot;endAt&quot;: null,
        &quot;filters&quot;: Array [
          _s {
            &quot;field&quot;: $ {
              &quot;offset&quot;: 0,
              &quot;segments&quot;: Array [
                &quot;email&quot;,
              ],
              &quot;t&quot;: 1,
            },
            &quot;op&quot;: &quot;==&quot;,
            &quot;value&quot;: Object {
              &quot;stringValue&quot;: &quot;e@mail.com&quot;,
            },
          },
        ],
        &quot;limit&quot;: null,
        &quot;orderBy&quot;: Array [
          ps {
            &quot;dir&quot;: &quot;asc&quot;,
            &quot;field&quot;: $ {
              &quot;offset&quot;: 0,
              &quot;segments&quot;: Array [
                &quot;__name__&quot;,
              ],
              &quot;t&quot;: 1,
            },
          },
        ],
        &quot;path&quot;: F {
          &quot;offset&quot;: 0,
          &quot;segments&quot;: Array [
            &quot;users&quot;,
          ],
          &quot;t&quot;: 1,
        },
        &quot;startAt&quot;: null,
      },
      &quot;collectionGroup&quot;: null,
      &quot;endAt&quot;: null,
      &quot;filters&quot;: Array [
        _s {
          &quot;field&quot;: $ {
            &quot;offset&quot;: 0,
            &quot;segments&quot;: Array [
              &quot;email&quot;,
            ],
            &quot;t&quot;: 1,
          },
          &quot;op&quot;: &quot;==&quot;,
          &quot;value&quot;: Object {
            &quot;stringValue&quot;: &quot;e@mail.com&quot;,
          },
        },
      ],
      &quot;limit&quot;: null,
      &quot;on&quot;: &quot;F&quot;,
      &quot;path&quot;: F {
        &quot;offset&quot;: 0,
        &quot;segments&quot;: Array [
          &quot;users&quot;,
        ],
        &quot;t&quot;: 1,
      },
      &quot;rn&quot;: Array [],
      &quot;startAt&quot;: null,
    },
    &quot;T_&quot;: null,
    &quot;Uf&quot;: null,
    &quot;metadata&quot;: Ec {
      &quot;fromCache&quot;: false,
      &quot;hasPendingWrites&quot;: false,
    },
    &quot;qf&quot;: null,
    &quot;vf&quot;: dc {
      &quot;Af&quot;: za {
        &quot;U&quot;: ft {
          &quot;database&quot;: &quot;(default)&quot;,
          &quot;projectId&quot;: &quot;goalsdev-7eb67&quot;,
        },
        &quot;ignoreUndefinedProperties&quot;: false,
        &quot;serializer&quot;: pe {
          &quot;U&quot;: ft {
            &quot;database&quot;: &quot;(default)&quot;,
            &quot;projectId&quot;: &quot;goalsdev-7eb67&quot;,
          },
          &quot;Ue&quot;: true,
        },
      },
      &quot;Ef&quot;: fc {
        &quot;cacheSizeBytes&quot;: 41943040,
        &quot;credentials&quot;: undefined,
        &quot;experimentalForceLongPolling&quot;: false,
        &quot;host&quot;: &quot;firestore.googleapis.com&quot;,
        &quot;ignoreUndefinedProperties&quot;: false,
        &quot;ssl&quot;: true,
        &quot;timestampsInSnapshots&quot;: true,
      },
      &quot;INTERNAL&quot;: Object {
        &quot;delete&quot;: [Function _delete],
      },
      &quot;Tf&quot;: Wr {
        &quot;Hc&quot;: [Function anonymous],
        &quot;Zc&quot;: [Function anonymous],
        &quot;auth&quot;: Object {
          &quot;addAuthTokenListener&quot;: [Function bound ],
          &quot;getToken&quot;: [Function bound ],
          &quot;getUid&quot;: [Function bound ],
          &quot;removeAuthTokenListener&quot;: [Function bound ],
        },
        &quot;currentUser&quot;: ti {
          &quot;uid&quot;: &quot;BDErkp3H7hbzyce1AVqiS0M6ObT2&quot;,
        },
        &quot;eu&quot;: 4,
        &quot;forceRefresh&quot;: false,
        &quot;tu&quot;: true,
      },
      &quot;_f&quot;: Ws {
        &quot;As&quot;: null,
        &quot;Es&quot;: false,
        &quot;Is&quot;: Array [],
        &quot;Ps&quot;: Array [],
        &quot;Rs&quot;: true,
        &quot;Ts&quot;: Array [],
        &quot;gs&quot;: Ds {
          &quot;En&quot;: null,
          &quot;In&quot;: 1604894779861,
          &quot;Tn&quot;: 0,
          &quot;_n&quot;: [Circular],
          &quot;dn&quot;: 1000,
          &quot;fn&quot;: &quot;async_queue_retry&quot;,
          &quot;mn&quot;: 60000,
          &quot;wn&quot;: 1.5,
        },
        &quot;ws&quot;: Promise {
          &quot;_40&quot;: 0,
          &quot;_55&quot;: Promise {
            &quot;_40&quot;: 0,
            &quot;_55&quot;: null,
            &quot;_65&quot;: 0,
            &quot;_72&quot;: null,
          },
          &quot;_65&quot;: 3,
          &quot;_72&quot;: null,
        },
        &quot;ys&quot;: [Function anonymous],
      },
      &quot;df&quot;: uc {
        &quot;Dh&quot;: Xr {
          &quot;Hu&quot;: Yr {
            &quot;au&quot;: Ia {
              &quot;Cl&quot;: &quot;https://firestore.googleapis.com&quot;,
              &quot;Dl&quot;: _t {
                &quot;U&quot;: ft {
                  &quot;database&quot;: &quot;(default)&quot;,
                  &quot;projectId&quot;: &quot;goalsdev-7eb67&quot;,
                },
                &quot;forceLongPolling&quot;: false,
                &quot;host&quot;: &quot;firestore.googleapis.com&quot;,
                &quot;persistenceKey&quot;: &quot;[DEFAULT]&quot;,
                &quot;ssl&quot;: true,
              },
              &quot;Nl&quot;: &quot;projects/goalsdev-7eb67/databases/(default)/documents&quot;,
              &quot;U&quot;: ft {
                &quot;database&quot;: &quot;(default)&quot;,
                &quot;projectId&quot;: &quot;goalsdev-7eb67&quot;,
              },
              &quot;forceLongPolling&quot;: false,
            },
            &quot;credentials&quot;: Wr {
              &quot;Hc&quot;: [Function anonymous],
              &quot;Zc&quot;: [Function anonymous],
              &quot;auth&quot;: Object {
                &quot;addAuthTokenListener&quot;: [Function bound ],
                &quot;getToken&quot;: [Function bound ],
                &quot;getUid&quot;: [Function bound ],
                &quot;removeAuthTokenListener&quot;: [Function bound ],
              },
              &quot;currentUser&quot;: ti {
                &quot;uid&quot;: &quot;BDErkp3H7hbzyce1AVqiS0M6ObT2&quot;,
              },
              &quot;eu&quot;: 4,
              &quot;forceRefresh&quot;: false,
              &quot;tu&quot;: true,
            },
            &quot;ku&quot;: false,
            &quot;serializer&quot;: pe {
              &quot;U&quot;: ft {
                &quot;database&quot;: &quot;(default)&quot;,
                &quot;projectId&quot;: &quot;goalsdev-7eb67&quot;,
              },
              &quot;Ue&quot;: true,
            },
          },
          &quot;Ju&quot;: Array [],
          &quot;Xu&quot;: Map {
            40 =&gt; pt {
              &quot;et&quot;: mt {
                &quot;timestamp&quot;: Object {
                  &quot;nanoseconds&quot;: 178070000,
                  &quot;seconds&quot;: 1604896308,
                },
              },
              &quot;lastLimboFreeSnapshotVersion&quot;: mt {
                &quot;timestamp&quot;: Object {
                  &quot;nanoseconds&quot;: 0,
                  &quot;seconds&quot;: 0,
                },
              },
              &quot;resumeToken&quot;: ct {
                &quot;M&quot;: &quot;
         –ÙæÒÐôì&quot;,
              },
              &quot;sequenceNumber&quot;: 111,
              &quot;target&quot;: At {
                &quot;Z&quot;: &quot;users|f:email==e@mail.com|ob:__name__asc&quot;,
                &quot;collectionGroup&quot;: null,
                &quot;endAt&quot;: null,
                &quot;filters&quot;: Array [
                  _s {
                    &quot;field&quot;: $ {
                      &quot;offset&quot;: 0,
                      &quot;segments&quot;: Array [
                        &quot;email&quot;,
                      ],
                      &quot;t&quot;: 1,
                    },
                    &quot;op&quot;: &quot;==&quot;,
                    &quot;value&quot;: Object {
                      &quot;stringValue&quot;: &quot;e@mail.com&quot;,
                    },
                  },
                ],
                &quot;limit&quot;: null,
                &quot;orderBy&quot;: Array [
                  ps {
                    &quot;dir&quot;: &quot;asc&quot;,
                    &quot;field&quot;: $ {
                      &quot;offset&quot;: 0,
                      &quot;segments&quot;: Array [
                        &quot;__name__&quot;,
                      ],
                      &quot;t&quot;: 1,
                    },
                  },
                ],
                &quot;path&quot;: F {
                  &quot;offset&quot;: 0,
                  &quot;segments&quot;: Array [
                    &quot;users&quot;,
                  ],
                  &quot;t&quot;: 1,
                },
                &quot;startAt&quot;: null,
              },
              &quot;targetId&quot;: 40,
              &quot;tt&quot;: 0,
            },
          },
          &quot;Yu&quot;: Object {
            &quot;Be&quot;: [Function bound Zo],
            &quot;oh&quot;: [Function bound Oo],
            &quot;rh&quot;: [Function bound Bo],
            &quot;t_&quot;: [Function bound Xo],
          },
          &quot;Zu&quot;: Set {},
          &quot;eh&quot;: Ra {},
          &quot;hh&quot;: zr {
            &quot;_n&quot;: Ws {
              &quot;As&quot;: null,
              &quot;Es&quot;: false,
              &quot;Is&quot;: Array [],
              &quot;Ps&quot;: Array [],
              &quot;Rs&quot;: true,
              &quot;Ts&quot;: Array [],
              &quot;gs&quot;: Ds {
                &quot;En&quot;: null,
                &quot;In&quot;: 1604894779861,
                &quot;Tn&quot;: 0,
                &quot;_n&quot;: [Circular],
                &quot;dn&quot;: 1000,
                &quot;fn&quot;: &quot;async_queue_retry&quot;,
                &quot;mn&quot;: 60000,
                &quot;wn&quot;: 1.5,
              },
              &quot;ws&quot;: Promise {
       ...(truncated to the first 10000 characters)
  
  
  </code></pre>
  <p>Just want to get access to the data for the document that's email field == the current user's email</p>
  <p>Edit:</p>
  <pre><code>firestore().collection('users').where(&quot;email&quot;, &quot;==&quot;, userCurrent).get()
              .then((querySnapshot) =&gt; {
                  querySnapshot.forEach(doc =&gt; {
                      console.log(doc.data())
                  })
              })
              .catch((error) =&gt; { console.log(error) })
  </code></pre>