Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

query

Creates a new immutable instance of Query that is extended to also include additional query constraints.

function query<AppModelType, DbModelType extends DocumentData>(
query: Query<AppModelType, DbModelType>,
...queryConstraints: QueryNonFilterConstraint[],
): Query<AppModelType, DbModelType>;
function query<AppModelType, DbModelType extends DocumentData>(query: Query<AppModelType, DbModelType>, ...queryConstraints: QueryConstraint[]): Query<AppModelType, DbModelType>;
§
query<AppModelType, DbModelType extends DocumentData>(query: Query<AppModelType, DbModelType>, compositeFilter: QueryCompositeFilterConstraint, ...queryConstraints: QueryNonFilterConstraint[]): Query<AppModelType, DbModelType>
[src]

Creates a new immutable instance of Query that is extended to also include additional query constraints.

§Type Parameters

§
AppModelType
[src]
§
DbModelType extends DocumentData
[src]

§Parameters

§
query: Query<AppModelType, DbModelType>
[src]
  • The Query instance to use as a base for the new constraints.
§
...queryConstraints: QueryNonFilterConstraint[] optional
[src]

§Return Type

§
Query<AppModelType, DbModelType>
[src]
§
query<AppModelType, DbModelType extends DocumentData>(query: Query<AppModelType, DbModelType>, ...queryConstraints: QueryConstraint[]): Query<AppModelType, DbModelType>
[src]

Creates a new immutable instance of Query that is extended to also include additional query constraints.

§Type Parameters

§
AppModelType
[src]
§
DbModelType extends DocumentData
[src]

§Parameters

§
query: Query<AppModelType, DbModelType>
[src]
  • The Query instance to use as a base for the new constraints.
§
...queryConstraints: QueryConstraint[] optional
[src]

§Return Type

§
Query<AppModelType, DbModelType>
[src]