1
Fork 0
mirror of https://github.com/Airsequel/AirGQL.git synced 2025-08-11 17:26:57 +03:00

Fix all tests!

This commit is contained in:
prescientmoon 2024-11-14 14:40:03 +01:00
commit 4318c70053
5 changed files with 2227 additions and 2204 deletions
source/AirGQL

View file

@ -348,7 +348,26 @@ tableDeleteField accessMode table = do
directives :: [Type.Directive]
directives = []
directives =
[ Type.directive
"skip"
["INLINE_FRAGMENT", "FRAGMENT_SPREAD", "FIELD"]
[ Type.inputValue "if" (Type.nonNull Type.typeBool)
& Type.inputValueWithDescription "Skipped when true."
]
& Type.directiveWithDescription
"Directs the executor to skip this field or fragment \
\when the `if` argument is true."
, Type.directive
"include"
["INLINE_FRAGMENT", "FRAGMENT_SPREAD", "FIELD"]
[ Type.inputValue "if" (Type.nonNull Type.typeBool)
& Type.inputValueWithDescription "Included when true."
]
& Type.directiveWithDescription
"Directs the executor to include this field or fragment \
\only when the `if` argument is true."
]
getSchema

View file

@ -82,8 +82,8 @@ instance ToGraphQL Schema where
, ("types", toGraphQL schema.types)
, ("queryType", toGraphQL schema.queryType)
, ("mutationType", toGraphQL schema.mutationType)
, ("directives", toGraphQL schema.directives)
, ("subscriptionType", Value.Null)
, ("directives", Value.List [])
]