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

Link to this section Summary

Link to this section Functions

Link to this function

ap_publish_activity(activity_name, thing)

View Source
Link to this function

ap_receive_activity(creator, activity, object)

View Source
Link to this function

create(creator, unit, attrs)

View Source
@spec create(any(), Bonfire.Quantify.Unit.t(), attrs :: map()) ::
  {:ok, Bonfire.Quantify.Measure.t()} | {:error, Changeset.t()}

Retrieves a list of collections by arbitrary filters. Used by:

  • Various parts of the codebase that need to query for collections (inc. tests)

Retrieves a single collection by arbitrary filters. Used by:

  • GraphQL Item queries
  • ActivityPub integration
  • Various parts of the codebase that need to query for collections (inc. tests)
@spec update(Bonfire.Quantify.Measure.t(), attrs :: map()) ::
  {:ok, Bonfire.Quantify.Measure.t()} | {:error, Changeset.t()}