Use Expression and Field for Firestore Pipelines
mainThe @beta Firestore Pipelines API uses Expression and Field abstractions to build complex queries and data transformations.
Field: Represents a specific path in a document. You can create a field reference using thefield()function.Expression: An abstract base class for all pipeline operations. It provides a wide range of methods for mathematical, string, array, map, and timestamp manipulations, as well as boolean comparisons and aggregate functions.
Note: These features are currently in beta.
import { field } from '@google-cloud/firestore';
// Example of creating a field reference
const myField = field('some.nested.field');