google_api_datastore v0.4.0 GoogleApi.Datastore.V1.Model.Query View Source
A query for entities.
Attributes
- distinctOn (list(GoogleApi.Datastore.V1.Model.PropertyReference.t)): 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). Defaults to
nil
. - endCursor (String.t): 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. Defaults to
nil
. - filter (GoogleApi.Datastore.V1.Model.Filter.t): The filter to apply. Defaults to
nil
. - kind (list(GoogleApi.Datastore.V1.Model.KindExpression.t)): The kinds to query (if empty, returns entities of all kinds).
Currently at most 1 kind may be specified. Defaults to
nil
. - limit (integer()): The maximum number of results to return. Applies after all other
constraints. Optional.
Unspecified is interpreted as no limit.
Must be >= 0 if specified. Defaults to
nil
. - offset (integer()): The number of results to skip. Applies before limit, but after all other
constraints. Optional. Must be >= 0 if specified. Defaults to
nil
. - order (list(GoogleApi.Datastore.V1.Model.PropertyOrder.t)): The order to apply to the query results (if empty, order is unspecified). Defaults to
nil
. - projection (list(GoogleApi.Datastore.V1.Model.Projection.t)): The projection to return. Defaults to returning all properties. Defaults to
nil
. - startCursor (String.t): 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. Defaults to
nil
.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %GoogleApi.Datastore.V1.Model.Query{
distinctOn: [GoogleApi.Datastore.V1.Model.PropertyReference.t()],
endCursor: String.t(),
filter: GoogleApi.Datastore.V1.Model.Filter.t(),
kind: [GoogleApi.Datastore.V1.Model.KindExpression.t()],
limit: integer(),
offset: integer(),
order: [GoogleApi.Datastore.V1.Model.PropertyOrder.t()],
projection: [GoogleApi.Datastore.V1.Model.Projection.t()],
startCursor: String.t()
}
t() :: %GoogleApi.Datastore.V1.Model.Query{ distinctOn: [GoogleApi.Datastore.V1.Model.PropertyReference.t()], endCursor: String.t(), filter: GoogleApi.Datastore.V1.Model.Filter.t(), kind: [GoogleApi.Datastore.V1.Model.KindExpression.t()], limit: integer(), offset: integer(), order: [GoogleApi.Datastore.V1.Model.PropertyOrder.t()], projection: [GoogleApi.Datastore.V1.Model.Projection.t()], startCursor: String.t() }
Link to this section Functions
Link to this function
decode(value, options) View Source
Unwrap a decoded JSON object into its complex fields.