diff options
| author | Eugen Wissner <belka@caraus.de> | 2021-09-04 07:12:34 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2021-09-04 07:12:34 +0200 |
| commit | de4f69ab0312edfd7c0deb033aa6103442eb3ec8 (patch) | |
| tree | 001d8b7b9cf4863bbdbc5821a679177f4fcb23db | |
| parent | b96d75f447ddfdea4a4788126f4b4d002672d858 (diff) | |
| download | graphql-de4f69ab0312edfd7c0deb033aa6103442eb3ec8.tar.gz | |
Add CHANGELOG entries for the new executor
| -rw-r--r-- | CHANGELOG.md | 11 | ||||
| -rw-r--r-- | src/Language/GraphQL/AST/DirectiveLocation.hs | 4 | ||||
| -rw-r--r-- | 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 #-} |
