Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides a representation of a GraphQL
Schema in addition to
functions for defining and manipulating schemas.
Synopsis
- data Schema m = Schema {
- query :: ObjectType m
- mutation :: Maybe (ObjectType m)
- subscription :: Maybe (ObjectType m)
- data Type m
Documentation
A Schema is created by supplying the root types of each type of operation, query and mutation (optional). A schema definition is then supplied to the validator and executor.
Note: When the schema is constructed, by default only the types that are reachable by traversing the root types are included, other types must be explicitly referenced.
Schema | |
|
These are all of the possible kinds of types.