View Source Bonfire.API.GraphQL.ResolveFields (bonfire_umbrella v0.9.10-cooperation-beta.62)

Encapsulates the flow for resolving a field for potentially multiple parents.

Summary

Types

@type getter() :: (%{required(term()) => term()} -> term())
@type t() :: %Bonfire.API.GraphQL.ResolveFields{
  context: term(),
  default: term(),
  fetcher: atom(),
  getter_fn: (context :: term(), default :: term() -> getter()),
  info: map(),
  module: atom()
}

Functions

Link to this function

default_getter(context, default)

View Source