GoogleApi.Datastore.V1.Model.QueryResultBatch (google_api_datastore v0.18.1) View Source

A batch of results produced by a query.

Attributes

  • endCursor (type: String.t, default: nil) - A cursor that points to the position after the last result in the batch.
  • entityResultType (type: String.t, default: nil) - The result type for every entity in entity_results.
  • entityResults (type: list(GoogleApi.Datastore.V1.Model.EntityResult.t), default: nil) - The results for this batch.
  • moreResults (type: String.t, default: nil) - The state of the query after the current batch.
  • skippedCursor (type: String.t, default: nil) - A cursor that points to the position after the last skipped result. Will be set when skipped_results != 0.
  • skippedResults (type: integer(), default: nil) - The number of results skipped, typically because of an offset.
  • snapshotVersion (type: String.t, default: nil) - The version number of the snapshot this batch was returned from. This applies to the range of results from the query's start_cursor (or the beginning of the query if no cursor was given) to this batch's end_cursor (not the query's end_cursor). In a single transaction, subsequent query result batches for the same query can have a greater snapshot version number. Each batch's snapshot version is valid for all preceding batches. The value will be zero for eventually consistent queries.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Datastore.V1.Model.QueryResultBatch{
  endCursor: String.t() | nil,
  entityResultType: String.t() | nil,
  entityResults: [GoogleApi.Datastore.V1.Model.EntityResult.t()] | nil,
  moreResults: String.t() | nil,
  skippedCursor: String.t() | nil,
  skippedResults: integer() | nil,
  snapshotVersion: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.