QuerySnapshot

class QuerySnapshot : NSObject

A FIRQuerySnapshot contains zero or more FIRDocumentSnapshot objects. It can be enumerated using for … in documentSet.documents and its size can be inspected with isEmpty and count.

  • The query on which you called getDocuments or listened to in order to get this FIRQuerySnapshot.

    Declaration

    Swift

    var query: FIRQuery { get }
  • Metadata about this snapshot, concerning its source and if it has local modifications.

    Declaration

    Swift

    var metadata: FIRSnapshotMetadata { get }
  • Indicates whether this FIRQuerySnapshot is empty (contains no documents).

    Declaration

    Swift

    var isEmpty: Bool { get }
  • The count of documents in this FIRQuerySnapshot.

    Declaration

    Swift

    var count: Int { get }
  • An Array of the FIRDocumentSnapshots that make up this document set.

    Declaration