feat: add support for Firestore Pipeline#292
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces Firestore Pipeline operations to the google_cloud_firestore package, enabling server-side projections, expressions, aggregates, and vector search, complete with comprehensive E2E and unit tests. The review feedback highlights several key improvement opportunities: reverting a breaking change to the DistanceMeasure enum by converting values to lowercase locally within the pipeline execution, optimizing performance by extracting a frequently compiled regular expression into a file-level constant, and adding as well as exporting missing top-level comparison helpers (lessThan and greaterThan) to ensure API completeness.
Coverage Report✅ Coverage 71.95% meets 40% threshold Total Coverage: 71.95% Package Breakdown
Minimum threshold: 40% |
Add support for Firestore Pipeline
How to use
Aggregates
Aggregate stages use aliased aggregate expressions:
Expressions
Use
Expression.field,Expression.constant, andExpression.variabletobuild expressions. Most helpers are also available as fluent methods: