Смещение

Описание

Пропускает первые N входных документов.

Примеры

Node.js
const results = await db.pipeline()
  .collection("cities")
  .offset(10)
  .execute();

Web

const results = await execute(db.pipeline()
  .collection("cities")
  .offset(10));
Swift
let results = try await db.pipeline()
  .collection("cities")
  .offset(10)
  .execute()

Kotlin

val results = db.pipeline()
    .collection("cities")
    .offset(10)
    .execute()

Java

Task<Pipeline.Snapshot> results = db.pipeline()
        .collection("cities")
        .offset(10)
        .execute();
Python
results = client.pipeline().collection("cities").offset(10).execute()
Java
Pipeline.Snapshot results =
    firestore.pipeline().collection("cities").offset(10).execute().get();
Проложить маршрут
snapshot := client.Pipeline().Collection("cities").Offset(10).Execute(ctx)

Поведение

На этапе offset(...) будут пропущены первые N входных документов. Если перед смещением не используется этап sort(...), порядок возврата документов будет нестабильным, а повторные выполнения могут привести к разным результатам.