graphqexl v0.1.0-alpha-rc.23 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 type

gql()

gql() :: String.t()

Link to this section Functions

Link to this function

enum(schema, name, values)

(since 0.1.0)

Creates a new enum from the given spec

Returns Graphqexl.Schema.t/0

TODO: docstring examples

Link to this function

interface(schema, name, fields)

(since 0.1.0)

Creates a new interface from the given spec

Returns Graphqexl.Schema.t/0

TODO: docstring examples

Link to this function

mutation(schema, spec)

(since 0.1.0)

Creates a new mutation from the given spec

Returns Graphqexl.Schema.t/0

TODO: docstring examples

Link to this function

preprocess(gql)

(since 0.1.0)
preprocess(gql()) :: String.t()

Prepares the graphql schema dsl string for parsing

Returns String.t/0

TODO: docstring examples

Link to this function

query(schema, spec)

(since 0.1.0)

Creates a new query from the given spec

Returns Graphqexl.Schema.t/0

TODO: docstring examples

Link to this function

subscription(schema, spec)

(since 0.1.0)

Creates a new subscription from the given spec

Returns Graphqexl.Schema.t/0

TODO: docstring examples

Link to this function

type(schema, name, implements)

(since 0.1.0)

Creates a new type from the given spec

Returns %Graphqexl.Schema{}

TODO: docstring examples

Link to this function

type(schema, name, implements, fields)

Link to this function

union(schema, name, type1, type2)

(since 0.1.0)

Creates a new union from the given spec

Returns Graphqexl.Schema.t/0

TODO: docstring examples