From de4f69ab0312edfd7c0deb033aa6103442eb3ec8 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 4 Sep 2021 07:12:34 +0200 Subject: [PATCH] Add CHANGELOG entries for the new executor --- CHANGELOG.md | 11 +++++++++-- src/Language/GraphQL/AST/DirectiveLocation.hs | 4 ---- src/Language/GraphQL/Type/Definition.hs | 4 ++++ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 998720a..4773a5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,16 @@ and this project adheres to [Haskell Package Versioning Policy](https://pvp.haskell.org/). ## [Unreleased] -### Fixed -- Provide a custom `Show` instance for `Type.Definition.Value` (for error +### Added +- Custom `Show` instance for `Type.Definition.Value` (for error messages). +- Path information in errors (path to the field throwing the error). + +### Fixed +- Error messages are more concrete, they also contain type information and + wrong values, where appropriate and possible. +- If the field with an error is Non-Nullable, the error is propagated to the + first nullable field, as required by the specification. ## [1.0.0.0] ### Added diff --git a/src/Language/GraphQL/AST/DirectiveLocation.hs b/src/Language/GraphQL/AST/DirectiveLocation.hs index 511225f..d109666 100644 --- a/src/Language/GraphQL/AST/DirectiveLocation.hs +++ b/src/Language/GraphQL/AST/DirectiveLocation.hs @@ -1,7 +1,3 @@ -{- This Source Code Form is subject to the terms of the Mozilla Public License, - v. 2.0. If a copy of the MPL was not distributed with this file, You can - obtain one at https://mozilla.org/MPL/2.0/. -} - {-# LANGUAGE Safe #-} -- | Various parts of a GraphQL document can be annotated with directives. diff --git a/src/Language/GraphQL/Type/Definition.hs b/src/Language/GraphQL/Type/Definition.hs index cbfeeeb..1c8876a 100644 --- a/src/Language/GraphQL/Type/Definition.hs +++ b/src/Language/GraphQL/Type/Definition.hs @@ -1,3 +1,7 @@ +{- This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. -} + {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE Safe #-}