View Source Bonfire.Quantify.Measures.GraphQL (bonfire v0.3.5-classic-beta.10)

Link to this section Summary

Link to this section Functions

Link to this function

create_measure(attrs, info)

View Source
Link to this function

create_measures(attrs, info, fields)

View Source
Link to this function

fetch_has_unit_edge(_, ids)

View Source
Link to this function

fetch_measures(page_opts, info)

View Source
Link to this function

fields(group_fn, filters \\ [])

View Source
Link to this function

has_unit_edge(arg1, _, info)

View Source
Link to this function

map_ok_error(items, func)

View Source
@spec map_ok_error(items, func) :: {:ok, any()} | {:error, term()}
when items: [Map.t()], func: (Map.t(), any() -> {:ok, any()} | {:error, term()})

Iterate over a set of elements in a map calling func.

func is expected to return either one of {:ok, val} or {:error, reason}. If {:error, reason} is returned, iteration halts.

Link to this function

measures_pages(page_opts, info)

View Source
Link to this function

page(cursor_fn, page_opts, base_filters \\ [], data_filters \\ [], count_filters \\ [])

View Source

Retrieves an Page of units according to various filters

Used by:

  • GraphQL resolver single-parent resolution
Link to this function

pages(cursor_fn, group_fn, page_opts, base_filters \\ [], data_filters \\ [], count_filters \\ [])

View Source

Retrieves an Pages of units according to various filters

Used by:

  • GraphQL resolver bulk resolution
Link to this function

update_measure(changes, info)

View Source
Link to this function

update_measures(attrs, info, fields)

View Source