Options
All
  • Public
  • Public/Protected
  • All
Menu

A GeoQuerySnapshot contains zero or more QueryDocumentSnapshot objects representing the results of a query. The documents can be accessed as an array via the docs property or enumerated using the forEach method. The number of documents can be determined via the empty and size properties.

Hierarchy

  • GeoQuerySnapshot

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private Optional _center

_center: GeoPoint | GeoPoint

Private _docs

Private _querySnapshot

_querySnapshot: QuerySnapshot | QuerySnapshot

The QuerySnapshot instance.

Accessors

docs

empty

  • get empty(): boolean

size

  • get size(): number

Methods

docChanges

  • Returns an array of the documents changes since the last snapshot. If this is the first snapshot, all documents will be in the list as added changes.

    Returns DocumentChange[]

    Array of DocumentChanges.

forEach

  • forEach(callback: function, thisArg?: any): void
  • Enumerates all of the documents in the GeoQuerySnapshot.

    Parameters

    • callback: function

      A callback to be called with a DocumentSnapshot for each document in the snapshot.

    • Optional thisArg: any

      The this binding for the callback.

    Returns void

Generated using TypeDoc