graphqexl v0.1.0-alpha-rc.25 Graphqexl.Schema.Dsl
Domain-Specific Language for expressing and parsing a GQL string as a Graphqexl.Schema.t/0
Link to this section Summary
Functions
Creates a new enum from the given spec
Creates a new interface from the given spec
Creates a new mutation from the given spec
Prepares the graphql schema dsl string for parsing
Creates a new query from the given spec
Creates a new subscription from the given spec
Creates a new type from the given spec
Creates a new union from the given spec
Link to this section Types
Link to this section Functions
enum(schema, name, values)
(since 0.1.0)enum(Graphqexl.Schema.t(), atom(), String.t()) :: Graphqexl.Schema.t()
Creates a new enum from the given spec
Returns Graphqexl.Schema.t/0
TODO: docstring examples
interface(schema, name, fields)
(since 0.1.0)interface(Graphqexl.Schema.t(), atom(), Treex.Tree.t()) :: Graphqexl.Schema.t()
Creates a new interface from the given spec
Returns Graphqexl.Schema.t/0
TODO: docstring examples
mutation(schema, spec)
(since 0.1.0)mutation(Graphqexl.Schema.t(), String.t()) :: Graphqexl.Schema.t()
Creates a new mutation from the given spec
Returns Graphqexl.Schema.t/0
TODO: docstring examples
Prepares the graphql schema dsl string for parsing
Returns String.t/0
TODO: docstring examples
query(schema, spec)
(since 0.1.0)query(Graphqexl.Schema.t(), String.t()) :: Graphqexl.Schema.t()
Creates a new query from the given spec
Returns Graphqexl.Schema.t/0
TODO: docstring examples
subscription(schema, spec)
(since 0.1.0)subscription(Graphqexl.Schema.t(), String.t()) :: Graphqexl.Schema.t()
Creates a new subscription from the given spec
Returns Graphqexl.Schema.t/0
TODO: docstring examples
type(schema, name, implements)
(since 0.1.0)type(Graphqexl.Schema.t(), atom(), String.t()) :: Graphqexl.Schema.t()
Creates a new type from the given spec
Returns %Graphqexl.Schema{}
TODO: docstring examples
type(schema, name, implements, fields)
type(Graphqexl.Schema.t(), atom(), String.t() | nil, Treex.Tree.t()) :: Graphqexl.Schema.t()
union(schema, name, type1, type2)
(since 0.1.0)union(Graphqexl.Schema.t(), atom(), String.t(), String.t()) :: Graphqexl.Schema.t()
Creates a new union from the given spec
Returns Graphqexl.Schema.t/0
TODO: docstring examples