You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[not(booleanExpr)](./firestore_lite_pipelines.md#not_c5b8fb1)| <b><i>(Public Preview)</i></b> Creates an expression that negates a filter condition. |
64
64
| <b>function(condition, ...)</b> |
65
65
|[conditional(condition, thenExpr, elseExpr)](./firestore_lite_pipelines.md#conditional_07a206d)| <b><i>(Public Preview)</i></b> Creates a conditional expression that evaluates to a 'then' expression if a condition is true and an 'else' expression if the condition is false. |
66
+
|[switchOn(condition, result, others)](./firestore_lite_pipelines.md#switchon_02b8caf)| <b><i>(Public Preview)</i></b> Creates an expression that evaluates to the result corresponding to the first true condition. |
66
67
| <b>function(documentPath, ...)</b> |
67
68
|[documentId(documentPath)](./firestore_lite_pipelines.md#documentid_cef293c)| <b><i>(Public Preview)</i></b> Creates an expression that returns the document ID from a path. |
|[logicalMaximum(first, second, others)](./firestore_lite_pipelines.md#logicalmaximum_83be015)| <b><i>(Public Preview)</i></b> Creates an expression that returns the largest value between multiple input expressions or literal values. Based on Firestore's value type ordering. |
273
274
|[logicalMinimum(first, second, others)](./firestore_lite_pipelines.md#logicalminimum_83be015)| <b><i>(Public Preview)</i></b> Creates an expression that returns the smallest value between multiple input expressions and literal values. Based on Firestore's value type ordering. |
274
275
|[multiply(first, second)](./firestore_lite_pipelines.md#multiply_846ca1b)| <b><i>(Public Preview)</i></b> Creates an expression that multiplies two expressions together. |
276
+
|[nor(first, second, more)](./firestore_lite_pipelines.md#nor_e0c48bd)| <b><i>(Public Preview)</i></b> Creates an expression that performs a logical 'NOR' operation on multiple filter conditions. |
275
277
|[or(first, second, more)](./firestore_lite_pipelines.md#or_e0c48bd)| <b><i>(Public Preview)</i></b> Creates an expression that performs a logical 'OR' operation on multiple filter conditions. |
276
278
|[xor(first, second, additionalConditions)](./firestore_lite_pipelines.md#xor_8197113)| <b><i>(Public Preview)</i></b> Creates an expression that performs a logical 'XOR' (exclusive OR) operation on multiple BooleanExpressions. |
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
1856
+
>
1857
+
1858
+
Creates an expression that evaluates to the result corresponding to the first true condition.
1859
+
1860
+
This function behaves like a `switch` statement. It accepts an alternating sequence of conditions and their corresponding results. If an odd number of arguments is provided, the final argument serves as a default fallback result. If no default is provided and no condition evaluates to true, it throws an error.
| condition |[BooleanExpression](./firestore_lite_pipelines.booleanexpression.md#booleanexpression_class)| The first condition to check. |
1873
+
| result |[Expression](./firestore_lite_pipelines.expression.md#expression_class)| The result if the first condition is true. |
1874
+
| others | Array<[BooleanExpression](./firestore_lite_pipelines.booleanexpression.md#booleanexpression_class)\|[Expression](./firestore_lite_pipelines.expression.md#expression_class)<!---->>| Additional conditions and results, and optionally a default value. |
| first |[BooleanExpression](./firestore_lite_pipelines.booleanexpression.md#booleanexpression_class)| The first filter condition. |
8865
+
| second |[BooleanExpression](./firestore_lite_pipelines.booleanexpression.md#booleanexpression_class)| The second filter condition. |
8866
+
| more |[BooleanExpression](./firestore_lite_pipelines.booleanexpression.md#booleanexpression_class)<!---->\[\]| Additional filter conditions to 'NOR' together. |
| [not(booleanExpr)](./firestore_pipelines.md#not_c5b8fb1) | <b><i>(Public Preview)</i></b> Creates an expression that negates a filter condition. |
64
64
| <b>function(condition, ...)</b> |
65
65
| [conditional(condition, thenExpr, elseExpr)](./firestore_pipelines.md#conditional_07a206d) | <b><i>(Public Preview)</i></b> Creates a conditional expression that evaluates to a 'then' expression if a condition is true and an 'else' expression if the condition is false. |
66
+
| [switchOn(condition, result, others)](./firestore_pipelines.md#switchon_02b8caf) | <b><i>(Public Preview)</i></b> Creates an expression that evaluates to the result corresponding to the first true condition. |
66
67
| <b>function(documentPath, ...)</b> |
67
68
| [documentId(documentPath)](./firestore_pipelines.md#documentid_cef293c) | <b><i>(Public Preview)</i></b> Creates an expression that returns the document ID from a path. |
| [logicalMaximum(first, second, others)](./firestore_pipelines.md#logicalmaximum_83be015) | <b><i>(Public Preview)</i></b> Creates an expression that returns the largest value between multiple input expressions or literal values. Based on Firestore's value type ordering. |
273
274
| [logicalMinimum(first, second, others)](./firestore_pipelines.md#logicalminimum_83be015) | <b><i>(Public Preview)</i></b> Creates an expression that returns the smallest value between multiple input expressions and literal values. Based on Firestore's value type ordering. |
274
275
| [multiply(first, second)](./firestore_pipelines.md#multiply_846ca1b) | <b><i>(Public Preview)</i></b> Creates an expression that multiplies two expressions together. |
276
+
| [nor(first, second, more)](./firestore_pipelines.md#nor_e0c48bd) | <b><i>(Public Preview)</i></b> Creates an expression that performs a logical 'NOR' operation on multiple filter conditions. |
275
277
| [or(first, second, more)](./firestore_pipelines.md#or_e0c48bd) | <b><i>(Public Preview)</i></b> Creates an expression that performs a logical 'OR' operation on multiple filter conditions. |
276
278
| [xor(first, second, additionalConditions)](./firestore_pipelines.md#xor_8197113) | <b><i>(Public Preview)</i></b> Creates an expression that performs a logical 'XOR' (exclusive OR) operation on multiple BooleanExpressions. |
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
1862
+
>
1863
+
1864
+
Creates an expression that evaluates to the result corresponding to the first true condition.
1865
+
1866
+
This function behaves like a `switch` statement. It accepts an alternating sequence of conditions and their corresponding results. If an odd number of arguments is provided, the final argument serves as a default fallback result. If no default is provided and no condition evaluates to true, it throws an error.
0 commit comments