TypedGql.Generation.Context (typedGql v0.11.0)

Copy Markdown View Source

Read-only context passed to TypedGql.Generation.Plugin callbacks.

Carries the schema and compile-time options the engine has available at every pipeline juncture. Per-node information (parent type, target module) lives on TypedGql.Generation.Schema nodes, not here.

Summary

Types

t()

@type t() :: %TypedGql.Generation.Context{
  fragments: %{required(String.t()) => map()},
  scalar_types: %{required(String.t()) => module()},
  schema: TypedGql.Schema.t()
}