summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2019-09-10 10:06:48 +0200
committerEugen Wissner <belka@caraus.de>2019-09-10 10:20:40 +0200
commit721cbaee17561f3d9b58fb0c4ebe6e3a29d6c73d (patch)
tree1db71284c717eda480605ec9b4d673432ff99d3c /docs
parent1704022e744b276e0010f5ff147af1f109d30154 (diff)
downloadgraphql-721cbaee17561f3d9b58fb0c4ebe6e3a29d6c73d.tar.gz
Release 0.5.0.1v0.5.0.1
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorial/tutorial.lhs7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/tutorial/tutorial.lhs b/docs/tutorial/tutorial.lhs
index a4943c6..d017ddd 100644
--- a/docs/tutorial/tutorial.lhs
+++ b/docs/tutorial/tutorial.lhs
@@ -24,7 +24,6 @@ Since this file is a literate haskell file, we start by importing some dependenc
> import Data.Time (getCurrentTime)
>
> import Language.GraphQL
-> import Language.GraphQL.Schema (Schema)
> import qualified Language.GraphQL.Schema as Schema
> import Language.GraphQL.Trans (ActionT(..))
>
@@ -37,7 +36,7 @@ example from [graphql.js](https://github.com/graphql/graphql-js).
First we build a GraphQL schema.
-> schema1 :: Schema IO
+> schema1 :: NonEmpty (Schema.Resolver IO)
> schema1 = hello :| []
>
> hello :: Schema.Resolver IO
@@ -67,7 +66,7 @@ returning
For this example, we're going to be using time.
-> schema2 :: Schema IO
+> schema2 :: NonEmpty (Schema.Resolver IO)
> schema2 = time :| []
>
> time :: Schema.Resolver IO
@@ -127,7 +126,7 @@ This will fail
Now that we have two resolvers, we can define a schema which uses them both.
-> schema3 :: Schema IO
+> schema3 :: NonEmpty (Schema.Resolver IO)
> schema3 = hello :| [time]
>
> query3 :: Text