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

namedQuery

Reads a Firestore Query from local cache, identified by the given name.

The named queries are packaged into bundles on the server side (along with resulting documents), and loaded to local cache using loadBundle. Once in local cache, use this method to extract a Query by name.

function namedQuery(firestore: Firestore, name: string): Promise<Query | null>;
§
namedQuery(firestore: Firestore, name: string): Promise<Query | null>
[src]

§Parameters

§
firestore: Firestore
[src]
  • The Firestore instance to read the query from.
§
name: string
[src]
  • The name of the query.

§Return Type

§
Promise<Query | null>
[src]

A Promise that is resolved with the Query or null.