diff options
| author | Eugen Wissner <belka@caraus.de> | 2020-06-03 07:20:38 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2020-06-03 07:20:38 +0200 |
| commit | 93a04032886976b540f5fdb1417bd085a642f772 (patch) | |
| tree | 712dda8a81286e0e39719a25f798ce23bb574e69 /tests/Test/DirectiveSpec.hs | |
| parent | d12577ae717512979c7654191ca65f25fc877907 (diff) | |
| download | graphql-93a04032886976b540f5fdb1417bd085a642f772.tar.gz | |
Resolve abstract types
Objects that can be a part of an union or interface should return
__typename as string.
Diffstat (limited to 'tests/Test/DirectiveSpec.hs')
| -rw-r--r-- | tests/Test/DirectiveSpec.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Test/DirectiveSpec.hs b/tests/Test/DirectiveSpec.hs index 55a5277..ca1103b 100644 --- a/tests/Test/DirectiveSpec.hs +++ b/tests/Test/DirectiveSpec.hs @@ -20,7 +20,7 @@ experimentalResolver = Schema { query = queryType, mutation = Nothing } resolver = pure $ Int 5 queryType = Out.ObjectType "Query" Nothing [] $ HashMap.singleton "experimentalField" - $ Out.Field Nothing (Out.NamedScalarType int) mempty resolver + $ Out.Resolver (Out.Field Nothing (Out.NamedScalarType int) mempty) resolver emptyObject :: Aeson.Value emptyObject = object |
