Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.GraphQL.Type.Schema
Description
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.
Constructors
Schema | |
Fields
|
These are all of the possible kinds of types.
Constructors
ScalarType ScalarType | |
EnumType EnumType | |
ObjectType (ObjectType m) | |
InputObjectType InputObjectType | |
InterfaceType (InterfaceType m) | |
UnionType (UnionType m) |