From a056d5ba064c47cdff92f1efec5ea7697ad40009 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Fri, 3 Sep 2021 14:01:10 +0100 Subject: [PATCH] Add Exceptions section to Boot starter ref docs See gh-121 --- .../src/docs/asciidoc/boot-starter.adoc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc b/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc index cf62dcb0..b9e0bd04 100644 --- a/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc +++ b/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc @@ -173,6 +173,19 @@ values of interest in <>. +[[boot-graphql-exception-handling]] +== Exception + +Spring GraphQL enables applications to register one or more Spring +`DataFetcherExceptionResolver` components that are invoked sequentially until one +resolves the Exception to a list of `graphql.GraphQLError` objects. See +<> for details. + +The Boot starter detects beans of type `DataFetcherExceptionResolver` and registers them +automatically with the `GraphQlSource.Builder`. + + + [[boot-graphql-graphiql]] == GraphiQL @@ -187,7 +200,6 @@ spring.graphql.graphiql.path=/graphiql - [[boot-graphql-metrics]] == Metrics