webql/compiler

Copy Markdown

Types

Compiler

pub opaque type Compiler

Values

compile

pub fn compile(
  compiler: Compiler,
  source: String,
) -> Result(graph.Graph, diagnostic.Diagnostic)

Compiles a text source into a finalized document.

new

pub fn new(schema: introspection.Schema) -> Compiler

Creates a compiler instance with resolver context.