absinthe v1.5.0-beta.0 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
Functions
Get the currently selected operation.
Append the given field or fields to the given type
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.
Index the types by their name
Update the current operation.
Link to this section Types
flags_t() View Source
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()
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()
result_t() View Source
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: nil | Absinthe.Language.Document.t(),
name: nil | String.t(),
operations: [Absinthe.Blueprint.Document.Operation.t()],
prototype_schema: nil | Absinthe.Schema.t(),
result: result_t(),
schema: nil | Absinthe.Schema.t(),
schema_definitions: [Absinthe.Blueprint.Schema.SchemaDefinition.t()],
source: nil | String.t() | Absinthe.Language.Source.t(),
telemetry: map()
}
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: nil | Absinthe.Language.Document.t(), name: nil | String.t(), operations: [Absinthe.Blueprint.Document.Operation.t()], prototype_schema: nil | Absinthe.Schema.t(), result: result_t(), schema: nil | Absinthe.Schema.t(), schema_definitions: [Absinthe.Blueprint.Schema.SchemaDefinition.t()], source: nil | String.t() | Absinthe.Language.Source.t(), telemetry: map() }
use_t()
View Source
use_t() ::
Absinthe.Blueprint.Document.Fragment.Named.Use.t()
| Absinthe.Blueprint.Input.Variable.Use.t()
use_t() :: Absinthe.Blueprint.Document.Fragment.Named.Use.t() | Absinthe.Blueprint.Input.Variable.Use.t()
Link to this section Functions
add_field(blueprint, type_def_name, new_field) View Source
current_operation(blueprint)
View Source
current_operation(t()) :: nil | Absinthe.Blueprint.Document.Operation.t()
current_operation(t()) :: nil | Absinthe.Blueprint.Document.Operation.t()
Get the currently selected operation.
extend_fields(blueprint, ext_blueprint) View Source
Append the given field or fields to the given type
find(blueprint, fun) View Source
find_field(map, name) View Source
flagged?(node, flag) View Source
Determine whether a flag has been set on a node.
fragment(blueprint, name) View Source
postwalk(blueprint, fun) View Source
See Absinthe.Blueprint.Transform.postwalk/2
.
postwalk(blueprint, acc, fun) View Source
See Absinthe.Blueprint.Transform.postwalk/3
.
prewalk(blueprint, fun) View Source
See Absinthe.Blueprint.Transform.prewalk/2
.
prewalk(blueprint, acc, fun) View Source
See Absinthe.Blueprint.Transform.prewalk/3
.
put_flag(node, flag, mod) View Source
Add a flag to a node.
types_by_name(blueprint) View Source
Index the types by their name
update_current(blueprint, change) View Source
Update the current operation.