View Source Bonfire.API.GraphQL.ResolveFields (Bonfire v0.9.10-classic-beta.156)

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