odata v0.1.2 OData.Query

Construct queries for OData APIs.

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

Types

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

Functions

build(entity)

Builds a query for an OData source.

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

Sets the ID when getting a specific item.

set_params(query, new_params)

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

skip(query, offset)
skip(OData.Query.t, integer) :: OData.Query.t

Sets the query offset.

top(query, limit)
top(OData.Query.t, integer) :: OData.Query.t

Sets the query limit.