Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions firestore/swift/firestore-smoketest/PipelineSnippets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -411,22 +411,6 @@ public class PipelineSnippets {
print(results)
}

// https://cloud.google.com/firestore/docs/pipeline/stages/transformation/union#examples
func unionStageStable() async throws {
// [START union_stage_stable]
let results = try await db.pipeline()
.collection("cities/SF/restaurants")
.where(Field("type").equal("Chinese"))
.union(with: db.pipeline()
.collection("cities/NY/restaurants")
.where(Field("type").equal("Italian")))
.where(Field("rating").greaterThanOrEqual(4.5))
.sort([Field("__name__").descending()])
.execute()
// [END union_stage_stable]
print(results)
}

// https://cloud.google.com/firestore/docs/pipeline/stages/transformation/unnest#examples
func unnestStage() async throws {
// [START unnest_stage]
Expand Down
Loading