Skip to content

Conversation

@morganchen12
Copy link
Contributor

No description provided.

@morganchen12 morganchen12 changed the title Mc/pipelines Add pipeline snippets Oct 29, 2025
Copy link

@MarkDuckworth MarkDuckworth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not finish the review, but here is some high level feedback that needs to be addressed. Some across all samples.

Copy link

@MarkDuckworth MarkDuckworth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with comments. There are a few remaining errors and a few nits I commented on.

field("tags").arrayConcat([
field("pages").greaterThan(100)
.conditional(constant("longRead"), constant("shortRead"))
]).as("extendedTags")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this example!

}

async function strSplitFunction() {
// not yet supported until GA

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is supported now

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in SDKs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't able to find this method after updating both the web and iOS SDKs. I haven't checked the other ones yet.

markarndt and others added 4 commits November 6, 2025 14:56
Add missing START/END for ends_with
* add admin snippets temporarily

* write node snippets

* run snippets
@morganchen12 morganchen12 changed the title Add pipeline snippets Add pipeline snippets for web and nodejs Nov 7, 2025
// old snippets

async function basicRead() {
// [START basic_read]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we can just add

 // The import/require of 'firebase/firestore/pipelines' has a side effect
 // of extending the Firestore class with the `.pipeline()` method.
 // Without this import/require, you will not be able to create a Pipeline
const { execute } = require("firebase/firestore/pipelines");

And that will generate the expected snippet with import in snippets/firestore-next/...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, though I commented out the import to prevent a CI failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants