ds_wrapper v0.1.1 DsWrapper.Query View Source
Link to this section Summary
Functions
Set a limit on the number of results to be returned.
Create a new %GoogleApi.Datastore.V1.Model.Query
for kind.
Sort the results by a property name. By default, an ascending sort order will be used.
To sort in descending order, provide a second argument to :desc
.
Set the cursor to start the results at.
Add a property filter to the query.
Link to this section Types
Link to this section Functions
Set a limit on the number of results to be returned.
Examples
iex> import DsWrapper.Query
iex> new_query("SomeKind")
...> |> limit(100)
%GoogleApi.Datastore.V1.Model.Query{...}
Create a new %GoogleApi.Datastore.V1.Model.Query
for kind.
Examples
iex> DsWrapper.Query.new_query("SomeKind")
%GoogleApi.Datastore.V1.Model.Query{...}
Sort the results by a property name. By default, an ascending sort order will be used.
To sort in descending order, provide a second argument to :desc
.
Examples
iex> import DsWrapper.Query
iex> new_query("SomeKind")
...> |> order("some_property")
%GoogleApi.Datastore.V1.Model.Query{...}
Set the cursor to start the results at.
Examples
iex> import DsWrapper.Query
iex> new_query("SomeKind")
...> |> start(cursor)
%GoogleApi.Datastore.V1.Model.Query{...}
Add a property filter to the query.
Examples
iex> import DsWrapper.Query
iex> new_query("SomeKind")
...> |> where("some_property", "=", "some value")
%GoogleApi.Datastore.V1.Model.Query{...}