-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnhandledPromiseRejectionWarning: TypeError: documentRef.getCollections is not a function #606
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Oh, I saw you was changed method name 'listCollections', but you don't mention this method is deprecated :(, Ref: (https://googleapis.dev/nodejs/firestore/latest/DocumentReference.html#listCollections) |
This is one of the breaking changes that went out with Firestore 2.0.0 and Admin 8.0.0. But the documentation still shows the old method it seems. @schmidt-sebastian FYA. |
It looks like we forgot to update our docs. Thanks for catching that! @samtstern Can you update the code snippets on https://firebase.google.com/docs/firestore/query-data/get-data#list_subcollections_of_a_document to use
|
I've created an internal bug to track the documentation update. Closing this since there's no action items for this repo. |
[READ] Step 1: Are you in the right place?
file a Github issue.
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
I was used firebase-tools v'7.0.0' & firebase-admin v'7.0.0' & firebase-functions v'2.3.0', then can use method 'getCollections' of DocumentReference.
But I was upgrade version firebase-tools v'7.2.1' & firebase-admin v'8.3.0' & firebase-functions v'3.2.0', then I can't use this method and occur this error.
Did you deprecated this method or not? I still see The documentation at here for this method 'https://firebase.google.com/docs/firestore/query-data/get-data#list_subcollections_of_a_document'
Relevant Code:
The text was updated successfully, but these errors were encountered: