odata v0.1.7 OData.Query

Construct queries for OData APIs.

Link to this section Summary

Functions

Builds a query for an OData source

Sets the ID when getting a specific item

Set the params for the query all at once, eg. top, skip

Sets the query offset

Sets the query limit

Link to this section Types

Link to this type t()
t() :: %OData.Query{entity: term, id: term, params: term, service_root: term}

Link to this section Functions

Builds a query for an OData source.

Link to this function build(service_root, entity)
Link to this function build(service_root, entity, params)
build(String.t, String.t, list) :: OData.Query.t
Link to this function id(query, entity_id)

Sets the ID when getting a specific item.

Link to this function set_params(query, new_params)

Set the params for the query all at once, eg. top, skip.

Link to this function skip(query, offset)
skip(OData.Query.t, integer) :: OData.Query.t

Sets the query offset.

Link to this function top(query, limit)
top(OData.Query.t, integer) :: OData.Query.t

Sets the query limit.