diff options
Diffstat (limited to 'src/Language/GraphQL/Execute/Coerce.hs')
| -rw-r--r-- | src/Language/GraphQL/Execute/Coerce.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Language/GraphQL/Execute/Coerce.hs b/src/Language/GraphQL/Execute/Coerce.hs index ead19dc..6997945 100644 --- a/src/Language/GraphQL/Execute/Coerce.hs +++ b/src/Language/GraphQL/Execute/Coerce.hs @@ -4,6 +4,7 @@ module Language.GraphQL.Execute.Coerce ( VariableValue(..) , coerceInputLiterals + , isNonNullInputType ) where import qualified Data.Aeson as Aeson @@ -148,6 +149,7 @@ coerceInputLiterals variableTypes variableValues = . Text.Builder.toLazyText . Text.Builder.decimal +-- | Checks whether the given input type is a non-null type. isNonNullInputType :: InputType -> Bool isNonNullInputType (NonNullScalarInputType _) = True isNonNullInputType (NonNullEnumInputType _) = True |
