Dagger.Schema (dagger v1.0.0-beta.13)

Copy Markdown View Source

A GraphQL introspection schema that can be inspected and merged.

Summary

Functions

Serialize the schema back to introspection JSON.

A unique identifier for this Schema.

Merge a module's introspection-shaped type definitions into the schema, returning the combined schema.

Types

t()

@type t() :: %Dagger.Schema{client: term(), query_builder: term()}

Functions

contents(schema)

@spec contents(t()) :: {:ok, Dagger.JSON.t()} | {:error, term()}

Serialize the schema back to introspection JSON.

id(schema)

@spec id(t()) :: {:ok, String.t()} | {:error, term()}

A unique identifier for this Schema.

merge(schema, module_types, module_name)

@spec merge(t(), Dagger.JSON.t(), String.t()) :: t()

Merge a module's introspection-shaped type definitions into the schema, returning the combined schema.