summaryrefslogtreecommitdiff
path: root/tests/Test/StarWars/Schema.hs
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2020-05-26 11:13:55 +0200
committerEugen Wissner <belka@caraus.de>2020-05-26 11:13:55 +0200
commitc06d0b8e95ea4b87eab69da085cb32dbd052c1f0 (patch)
tree12bcabe076d873f2676b33c6f510dba566352756 /tests/Test/StarWars/Schema.hs
parent61dbe6c7280a899b485146aa8557948417e78360 (diff)
downloadgraphql-c06d0b8e95ea4b87eab69da085cb32dbd052c1f0.tar.gz
Add Union and Interface type definitions
Diffstat (limited to 'tests/Test/StarWars/Schema.hs')
-rw-r--r--tests/Test/StarWars/Schema.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Test/StarWars/Schema.hs b/tests/Test/StarWars/Schema.hs
index f32c031..e58d33b 100644
--- a/tests/Test/StarWars/Schema.hs
+++ b/tests/Test/StarWars/Schema.hs
@@ -25,7 +25,7 @@ import Test.StarWars.Data
schema :: Schema Identity
schema = Schema { query = queryType, mutation = Nothing }
where
- queryType = Out.ObjectType "Query" Nothing $ HashMap.fromList
+ queryType = Out.ObjectType "Query" Nothing [] $ HashMap.fromList
[ ("hero", Out.Field Nothing (Out.NamedScalarType string) mempty hero)
, ("human", Out.Field Nothing (Out.NamedScalarType string) mempty human)
, ("droid", Out.Field Nothing (Out.NamedScalarType string) mempty droid)