QuerySnapshot
class QuerySnapshot : NSObject, @unchecked SendableA QuerySnapshot contains zero or more DocumentSnapshot objects. It can be enumerated
using the documents property and its size can be inspected with isEmpty and
count.
-
The query on which you called
getDocumentsor listened to in order to get thisQuerySnapshot.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
QuerySnapshotis empty (contains no documents).Declaration
Swift
var isEmpty: Bool { get } -
The count of documents in this
QuerySnapshot.Declaration
Swift
var count: Int { get } -
An Array of the
DocumentSnapshotsthat make up this document set.Declaration
Swift
var documents: [FIRQueryDocumentSnapshot] { get } -
An array of the documents that changed since the last snapshot. If this is the first snapshot, all documents will be in the list as Added changes.
Declaration
Swift
var documentChanges: [FIRDocumentChange] { get } -
Returns an array of the documents that changed since the last snapshot. If this is the first snapshot, all documents will be in the list as Added changes.
Declaration
Swift
func documentChanges(includeMetadataChanges: Bool) -> [FIRDocumentChange]Parameters
includeMetadataChangesWhether metadata-only changes (i.e. only
DocumentSnapshot.metadatachanged) should be included.