QueryCompositeFilterConstraint class
Stay organized with collections
Save and categorize content based on your preferences.
A QueryCompositeFilterConstraint
is used to narrow the set of documents returned by a Firestore query by performing the logical OR or AND of multiple QueryFieldFilterConstraints or QueryCompositeFilterConstraints. QueryCompositeFilterConstraint
s are created by invoking or() or and() and can then be passed to query() to create a new query instance that also contains the QueryCompositeFilterConstraint
.
Signature:
export declare class QueryCompositeFilterConstraint
Properties
Property |
Modifiers |
Type |
Description |
type |
|
'or' | 'and' |
The type of this query constraint |
QueryCompositeFilterConstraint.type
The type of this query constraint
Signature:
readonly type: 'or' | 'and';
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-19 UTC.
[null,null,["Last updated 2024-01-19 UTC."],[],[],null,["A `QueryCompositeFilterConstraint` is used to narrow the set of documents returned by a Firestore query by performing the logical OR or AND of multiple [QueryFieldFilterConstraint](./firestore_.queryfieldfilterconstraint.md#queryfieldfilterconstraint_class)s or [QueryCompositeFilterConstraint](./firestore_.querycompositefilterconstraint.md#querycompositefilterconstraint_class)s. `QueryCompositeFilterConstraint`s are created by invoking [or()](./firestore_.md#or_e72c712) or [and()](./firestore_.md#and_e72c712) and can then be passed to [query()](./firestore_.md#query_9f7b0f4) to create a new query instance that also contains the `QueryCompositeFilterConstraint`.\n\n**Signature:** \n\n export declare class QueryCompositeFilterConstraint \n\nProperties\n\nQueryCompositeFilterConstraint.type\n\nThe type of this query constraint\n\n**Signature:** \n\n readonly type: 'or' | 'and';"]]