-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(firestore): [PQ] Add rest of the input stages #12425
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,38 @@ type PipelineSource struct { | |
| client *Client | ||
| } | ||
|
|
||
| // Collection returns all documents from the entire collection. | ||
| // Collection creates a new [Pipeline] that operates on the specified Firestore collection. | ||
| func (ps *PipelineSource) Collection(path string) *Pipeline { | ||
| return newPipeline(ps.client, newInputStageCollection(path)) | ||
| } | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is also missing the |
||
| // CollectionGroup creates a new [Pipeline] that operates on all documents in a group | ||
| // of collections that include the given ID, regardless of parent document. | ||
| // | ||
| // For example, consider: | ||
| // France/Cities/Paris = {population: 100} | ||
| // Canada/Cities/Montreal = {population: 90} | ||
| // | ||
| // CollectionGroup can be used to query across all "Cities" regardless of | ||
| // its parent "Countries". | ||
| func (ps *PipelineSource) CollectionGroup(collectionID string) *Pipeline { | ||
| return newPipeline(ps.client, newInputStageCollectionGroup("", collectionID)) | ||
| } | ||
|
|
||
| // CollectionGroupWithAncestor creates a new [Pipeline] that operates on all documents in a group | ||
| // of collections that include the given ID, that are underneath a given document. | ||
| // | ||
| // For example, consider: | ||
| // /continents/Europe/Germany/Cities/Paris = {population: 100} | ||
| // /continents/Europe/France/Cities/Paris = {population: 100} | ||
| // /continents/NorthAmerica/Canada/Cities/Montreal = {population: 90} | ||
| // | ||
| // CollectionGroupWithAncestor can be used to query across all "Cities" in "/continents/Europe". | ||
| func (ps *PipelineSource) CollectionGroupWithAncestor(ancestor, collectionID string) *Pipeline { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We were not planning on shipping the |
||
| return newPipeline(ps.client, newInputStageCollectionGroup(ancestor, collectionID)) | ||
| } | ||
|
|
||
| // Database creates a new [Pipeline] that operates on all documents in the Firestore database. | ||
| func (ps *PipelineSource) Database() *Pipeline { | ||
| return newPipeline(ps.client, newInputStageDatabase()) | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.