PipelineSource
public struct PipelineSource : @unchecked SendableA PipelineSource is the entry point for building a Firestore pipeline. It allows you to
specify the source of the data for the pipeline, which can be a collection, a collection group,
a list of documents, or the entire database.
-
Specifies a collection as the data source for the pipeline.
Declaration
Swift
public func collection(_ path: String, forceIndex: String? = nil) -> PipelineParameters
pathThe path to the collection.
forceIndexThe name of the index to be used.
Return Value
A
Pipelinewith the specified collection as its source. -
Specifies a collection as the data source for the pipeline.
Declaration
Swift
public func collection(_ coll: CollectionReference, forceIndex: String? = nil) -> PipelineParameters
collThe
CollectionReferenceof theforceIndexThe name of the index to be used.
Return Value
A
Pipelinewith the specified collection as its source. -
Specifies a collection group as the data source for the pipeline.
Declaration
Swift
public func collectionGroup(_ collectionId: String, forceIndex: String? = nil) -> PipelineParameters
collectionIdThe ID of the collection group.
Return Value
A
Pipelinewith the specified collection group as its source. -
Specifies a list of documents as the data source for the pipeline.
Declaration
Swift
public func documents(_ docs: [DocumentReference]) -> PipelineParameters
docsAn array of
DocumentReferenceobjects.Return Value
A
Pipelinewith the specified documents as its source.