-
Notifications
You must be signed in to change notification settings - Fork 148
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
Add List() API #368
Add List() API #368
Conversation
55663fb
to
682eb09
Compare
682eb09
to
63d128b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refreshingly small PR. 😛
This basically LGTM, but we should probably hold off submitting until we discuss the API.
* } else { | ||
* missingDocuments++; | ||
* } | ||
* } |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
dev/test/collection.ts
Outdated
@@ -135,6 +135,28 @@ describe('Collection interface', () => { | |||
}); | |||
}); | |||
|
|||
it('hast list() method', () => { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
types/firestore.d.ts
Outdated
* The document references returned may include missing documents, which | ||
* are documents that have not been explicitly created but contain | ||
* subcollections. If you attempt to read a missing document, we will return | ||
* a DocumentSnapshot whose `.exists` property is set to false. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Still LGTM. |
This adds support for the ListDocuments RPC, which allows us to enumerate all documents, including missing documents. We only return DocumentReference and don't fetch any data.