absinthe v1.4.13 Absinthe.Blueprint View Source

Represents the graphql document to be executed.

Please see the code itself for more information on individual blueprint sub modules.

Link to this section Summary

Link to this section Types

Link to this type flags_t() View Source
flags_t() :: %{optional(atom()) => module()}
Link to this type node_t() View Source
node_t() ::
  Absinthe.Blueprint.t()
  | Absinthe.Blueprint.Directive.t()
  | Absinthe.Blueprint.Document.t()
  | Absinthe.Blueprint.Schema.t()
  | Absinthe.Blueprint.Input.t()
  | Absinthe.Blueprint.TypeReference.t()
Link to this type result_t() View Source
result_t() :: %{
  optional(:data) => term(),
  optional(:errors) => [term()],
  optional(:extensions) => term()
}
Link to this type t() View Source
t() :: %Absinthe.Blueprint{
  adapter: nil | Absinthe.Adapter.t(),
  directives: [Absinthe.Blueprint.Schema.DirectiveDefinition.t()],
  errors: [Absinthe.Phase.Error.t()],
  execution: Absinthe.Blueprint.Execution.t(),
  flags: flags_t(),
  fragments: [Absinthe.Blueprint.Document.Fragment.Named.t()],
  input: term(),
  name: nil | String.t(),
  operations: [Absinthe.Blueprint.Document.Operation.t()],
  result: result_t(),
  schema: nil | Absinthe.Schema.t(),
  types: [Absinthe.Blueprint.Schema.t()]
}
Link to this type use_t() View Source
use_t() ::
  Absinthe.Blueprint.Document.Fragment.Named.Use.t()
  | Absinthe.Blueprint.Input.Variable.Use.t()

Link to this section Functions

Link to this function current_operation(blueprint) View Source
current_operation(t()) :: nil | Absinthe.Blueprint.Document.Operation.t()

Get the currently selected operation.

Link to this function flagged?(node, flag) View Source
flagged?(node_t(), atom()) :: boolean()

Determine whether a flag has been set on a node.

Link to this function fragment(blueprint, name) View Source
fragment(t(), String.t()) ::
  nil | Absinthe.Blueprint.Document.Fragment.Named.t()
Link to this function postwalk(blueprint, fun) View Source
Link to this function postwalk(blueprint, acc, fun) View Source
Link to this function prewalk(blueprint, acc, fun) View Source
Link to this function put_flag(node, flag, mod) View Source
put_flag(node_t(), atom(), module()) :: node_t()

Add a flag to a node.

Link to this function update_current(blueprint, change) View Source
update_current(
  t(),
  (Absinthe.Blueprint.Document.Operation.t() ->
     Absinthe.Blueprint.Document.Operation.t())
) :: t()

Update the current operation.