View Source Rivet.Utils.Criteria (rivet_utils v1.1.8)
Criteria is used for cursor based pagination.
Contributor: Brandon Gillespie
Link to this section Summary
Functions
Function to apply the limit to the query (optional)
Function to apply the offset to the query (optional)
Function to order the collection by attribute and direction
Take out the :criteria item from the arguments Returns something like
Link to this section Functions
Function to apply the limit to the query (optional)
Function to apply the offset to the query (optional)
Function to order the collection by attribute and direction
Take out the :criteria item from the arguments Returns something like:
{:ok, %{limit: 500, offset: 1, sort: {"taskTitle", :asc}}}