View Source GoogleApi.Datastore.V1.Model.Query (google_api_datastore v0.25.0)
A query for entities. The query stages are executed in the following order: 1. kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6. limit 7. find_nearest
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: * Iforder
is specified, the set of distinct on properties must appear before the non-distinct on properties inorder
. -
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. -
findNearest
(type:GoogleApi.Datastore.V1.Model.FindNearest.t
, default:nil
) - Optional. A potential Nearest Neighbors Search. Applies after all other filters and ordering. Finds the closest vector embeddings to the given query vector. -
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, findNearest: GoogleApi.Datastore.V1.Model.FindNearest.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
Unwrap a decoded JSON object into its complex fields.