Helpers for working with GraphQL type-reference maps as returned by
introspection (__Type).
A type reference is a recursive map of the shape:
%{"kind" => "NON_NULL" | "LIST" | "SCALAR" | ..., "name" => name, "ofType" => inner_or_nil}This module renders such structures to GraphQL syntax (Int!,
[String!]!, etc.) and unwraps modifiers to find the underlying named type.
Summary
Functions
Unwrap NON_NULL/LIST modifiers to return the innermost named type ref.
Strip an introspection type reference to the keys this library reads.
Render a type-reference map as a GraphQL type string.
Types
Functions
Unwrap NON_NULL/LIST modifiers to return the innermost named type ref.
Strip an introspection type reference to the keys this library reads.
Introspection responses carry descriptions and __typename on every
nesting level; the bundled schema dumps keep only kind, name, and
ofType so the compile-time literals stay small.
Render a type-reference map as a GraphQL type string.