From 93a04032886976b540f5fdb1417bd085a642f772 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 3 Jun 2020 07:20:38 +0200 Subject: Resolve abstract types Objects that can be a part of an union or interface should return __typename as string. --- src/Language/GraphQL.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Language/GraphQL.hs') diff --git a/src/Language/GraphQL.hs b/src/Language/GraphQL.hs index aef23f0..961253f 100644 --- a/src/Language/GraphQL.hs +++ b/src/Language/GraphQL.hs @@ -16,7 +16,7 @@ import Language.GraphQL.Type.Schema import Text.Megaparsec (parse) -- | If the text parses correctly as a @GraphQL@ query the query is --- executed using the given 'Schema.Resolver's. +-- executed using the given 'Schema'. graphql :: Monad m => Schema m -- ^ Resolvers. -> Text -- ^ Text representing a @GraphQL@ request document. @@ -25,7 +25,7 @@ graphql = flip graphqlSubs (mempty :: Aeson.Object) -- | If the text parses correctly as a @GraphQL@ query the substitution is -- applied to the query and the query is then executed using to the given --- 'Schema.Resolver's. +-- 'Schema'. graphqlSubs :: (Monad m, VariableValue a) => Schema m -- ^ Resolvers. -> HashMap Name a -- ^ Variable substitution function. -- cgit v1.2.3