diff options
| author | Eugen Wissner <belka@caraus.de> | 2019-08-30 07:26:04 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2019-08-30 07:26:04 +0200 |
| commit | 22313d05df7d96cd8106bc42f787bc74d74596de (patch) | |
| tree | ad92241fb9b317176adef1897cfc0c3a0dac55b4 /src/Language/GraphQL/Schema.hs | |
| parent | c1943c1979a0bfd37dae3a87d863f06938176baf (diff) | |
| download | graphql-22313d05df7d96cd8106bc42f787bc74d74596de.tar.gz | |
Deprecate Language.GraphQL.Execute.Schema
It is not a schema (at least not a complete one), but a resolver list,
and the resolvers should be provided by the user separately, because the
schema can originate from a GraphQL document. Schema name should be free
to provide a data type for the real schema later.
Diffstat (limited to 'src/Language/GraphQL/Schema.hs')
| -rw-r--r-- | src/Language/GraphQL/Schema.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Language/GraphQL/Schema.hs b/src/Language/GraphQL/Schema.hs index 08b52ce..3170a32 100644 --- a/src/Language/GraphQL/Schema.hs +++ b/src/Language/GraphQL/Schema.hs @@ -1,7 +1,7 @@ {-# LANGUAGE OverloadedStrings #-} -- | This module provides a representation of a @GraphQL@ Schema in addition to --- functions for defining and manipulating Schemas. +-- functions for defining and manipulating schemas. module Language.GraphQL.Schema ( Resolver , Schema @@ -43,6 +43,7 @@ import Language.GraphQL.Trans import Language.GraphQL.Type import Language.GraphQL.AST.Core +{-# DEPRECATED Schema "Use NonEmpty (Resolver m) instead" #-} -- | A GraphQL schema. -- @m@ is usually expected to be an instance of 'MonadIO'. type Schema m = NonEmpty (Resolver m) |
