graphqexl v0.1.0-alpha-rc.9 Graphqexl.Schema

Structured representation of a GraphQL schema, either built dynamically or parsed from a JSON document or GQL string.

Link to this section Summary

Functions

Parses a json map into a %Graphqexl.Schema{}.

Registers the given component on the given schema.

Link to this section Types

Link to this section Functions

Link to this function

gql(str)

gql(gql() | json()) :: %Graphqexl.Schema{
  enums: term(),
  interfaces: term(),
  mutations: term(),
  queries: term(),
  str: term(),
  subscriptions: term(),
  types: term(),
  unions: term()
}

Parses a json map into a %Graphqexl.Schema{}.

Returns %Graphqexl.Schema{}

Link to this function

register(schema, component)

register(GraphqexlSchema.t(), component()) :: Graphqexl.Schema.t()

Registers the given component on the given schema.

Returns %Graphqexl.Schema{}