absinthe v1.3.0-beta.1 Absinthe.Blueprint

Represents the graphql document to be executed.

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

Summary

Functions

Get the currently selected operation

Determine whether a flag has been set on a node

See Absinthe.Blueprint.Transform.postwalk/2

See Absinthe.Blueprint.Transform.postwalk/3

See Absinthe.Blueprint.Transform.prewalk/2

See Absinthe.Blueprint.Transform.prewalk/3

Add a flag to a node

Update the current operation

Types

flags_t()
flags_t() :: %{optional(atom) => module}
node_t()
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
t()
t() :: %Absinthe.Blueprint{adapter: nil | Absinthe.Adapter.t, directives: [Absinthe.Blueprint.Schema.DirectiveDefinition.t], errors: [Absinthe.Phase.Error.t], flags: flags_t, fragments: [Absinthe.Blueprint.Document.Fragment.Named.t], name: nil | String.t, operations: [Absinthe.Blueprint.Document.Operation.t], resolution: Absinthe.Blueprint.Document.Resolution.t, schema: nil | Absinthe.Schema.t, types: [Absinthe.Blueprint.Schema.t]}
use_t()
use_t ::
  Absinthe.Blueprint.Document.Fragment.Named.Use.t |
  Absinthe.Blueprint.Input.Variable.Use.t

Functions

current_operation(blueprint)
current_operation(t) ::
  nil |
  Absinthe.Blueprint.Document.Operation.t

Get the currently selected operation.

find(blueprint, fun)
flagged?(node, flag)
flagged?(node_t, atom) :: boolean

Determine whether a flag has been set on a node.

fragment(blueprint, name)
fragment(t, String.t) ::
  nil |
  Absinthe.Blueprint.Document.Fragment.Named.t
postwalk(blueprint, fun)

See Absinthe.Blueprint.Transform.postwalk/2.

postwalk(blueprint, acc, fun)

See Absinthe.Blueprint.Transform.postwalk/3.

prewalk(blueprint, fun)

See Absinthe.Blueprint.Transform.prewalk/2.

prewalk(blueprint, acc, fun)

See Absinthe.Blueprint.Transform.prewalk/3.

put_flag(node, flag, mod)
put_flag(node_t, atom, module) :: node_t

Add a flag to a node.

update_current(blueprint, change)
update_current(t, (Absinthe.Blueprint.Document.Operation.t -> Absinthe.Blueprint.Document.Operation.t)) :: t

Update the current operation.