View Source ValueFlows.Observe.Observations (Bonfire v0.9.10-classic-beta.169)

Summary

Functions

Create an observation

Link to this function

create(creator, map, observation_attrs)

View Source
Link to this function

fields(group_fn, filters \\ [])

View Source
Link to this function

indexing_object_format(obj)

View Source

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

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

Retrieves a single one by arbitrary filters. Used by:

  • GraphQL Item queries
  • ActivityPub integration
  • Various parts of the codebase that need to query for this (inc. tests)
Link to this function

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

View Source

Retrieves an Page of observations 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 observations according to various filters

Used by:

  • GraphQL resolver bulk resolution
Link to this function

preload_all(observation)

View Source
Link to this function

soft_delete(observation)

View Source
Link to this function

update(user, observation, attrs)

View Source