A Query refers to a Query which you can read or listen to. You can also construct refined Query objects by adding filters and ordering.

Type parameters

Index

Constructors

Protected constructor

Properties

firestore

firestore: Firestore

The Firestore for the Firestore database (useful for performing transactions, etc.).

Methods

endAt

endBefore

get

isEqual

limit

limitToLast

onSnapshot

orderBy

startAfter

startAt

where

withConverter

  • withConverter ( converter null ) : Query < DocumentData >
  • Applies a custom data converter to this Query, allowing you to use your own custom model objects with Firestore. When you call get() on the returned Query, the provided converter will convert between Firestore data and your custom type U.

    Passing in null as the converter parameter removes the current converter.

    Parameters

    Returns Query<DocumentData>

    A Query that uses the provided converter.
  • withConverter < U > ( converter FirestoreDataConverter < U > ) : Query < U >
  • Applies a custom data converter to this Query, allowing you to use your own custom model objects with Firestore. When you call get() on the returned Query, the provided converter will convert between Firestore data and your custom type U.

    Passing in null as the converter parameter removes the current converter.

    Type parameters

    Parameters

    Returns Query<U>

    A Query that uses the provided converter.