View Source GoogleApi.Datastore.V1.Model.Query (google_api_datastore v0.22.0)

A query for entities.

Attributes

  • distinctOn (type: list(GoogleApi.Datastore.V1.Model.PropertyReference.t), default: nil) - The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If order is specified, the set of distinct on properties must appear before the non-distinct on properties in order.
  • endCursor (type: String.t, default: nil) - An ending point for the query results. Query cursors are returned in query result batches and can only be used to limit the same query.
  • filter (type: GoogleApi.Datastore.V1.Model.Filter.t, default: nil) - The filter to apply.
  • kind (type: list(GoogleApi.Datastore.V1.Model.KindExpression.t), default: nil) - The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
  • limit (type: integer(), default: nil) - The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.
  • offset (type: integer(), default: nil) - The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be >= 0 if specified.
  • order (type: list(GoogleApi.Datastore.V1.Model.PropertyOrder.t), default: nil) - The order to apply to the query results (if empty, order is unspecified).
  • projection (type: list(GoogleApi.Datastore.V1.Model.Projection.t), default: nil) - The projection to return. Defaults to returning all properties.
  • startCursor (type: String.t, default: nil) - A starting point for the query results. Query cursors are returned in query result batches and can only be used to continue the same query.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Datastore.V1.Model.Query{
  distinctOn: [GoogleApi.Datastore.V1.Model.PropertyReference.t()] | nil,
  endCursor: String.t() | nil,
  filter: GoogleApi.Datastore.V1.Model.Filter.t() | nil,
  kind: [GoogleApi.Datastore.V1.Model.KindExpression.t()] | nil,
  limit: integer() | nil,
  offset: integer() | nil,
  order: [GoogleApi.Datastore.V1.Model.PropertyOrder.t()] | nil,
  projection: [GoogleApi.Datastore.V1.Model.Projection.t()] | nil,
  startCursor: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.