View Source Bonfire.API.GraphQL.ResolveFields (bonfire v0.3.5-classic-beta.10)

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

Link to this section Summary

Link to this section 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()

Link to this section Functions

Link to this function

default_getter(context, default)

View Source