Firebase-js-sdk: [Bug] Field type reference in QueryDocumentSnapshot is not an instance of DocumentReference

Created on 26 Nov 2020  路  1Comment  路  Source: firebase/firebase-js-sdk


[REQUIRED] Describe your environment

  • Operating System version: Ubuntu 20.04
  • Browser version: Chrome 86
  • Firebase SDK version: ^8.1.0
  • Firebase Product: firestore

[REQUIRED] Describe the problem

When querying documents from a collection, the field type reference does not return an instance of DocumentReference anymore. Therefore calling e.g. get() will result in an is not a function error. Example code can be found in the link below.

Relevant Code:


https://stackblitz.com/edit/firebase-issue-sandbox-z9mwhw

firestore

Most helpful comment

Thank you for reporting this issue. The stackblitz link was super helpful! At first glance, this definitely appears to be a regression in 8.1.0 (compared to 8.0.2). I'll do some investigation and reply back. Just a heads-up, since it's a long weekend in the US, I may not have a meaningful response until next week.

>All comments

Thank you for reporting this issue. The stackblitz link was super helpful! At first glance, this definitely appears to be a regression in 8.1.0 (compared to 8.0.2). I'll do some investigation and reply back. Just a heads-up, since it's a long weekend in the US, I may not have a meaningful response until next week.

Was this page helpful?
0 / 5 - 0 ratings