From 6f16e5e6ea44d3d41a29359535cc3afb18bd8f83 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Tue, 2 Nov 2021 14:57:47 +0000 Subject: [PATCH] Add mention of directives in documentation Closes gh-177 --- spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc | 4 ++-- spring-graphql-docs/src/docs/asciidoc/index.adoc | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc b/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc index f79b12d0..9ec8014f 100644 --- a/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc +++ b/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc @@ -116,8 +116,8 @@ spring.graphql.schema.printer.enabled=false [[boot-graphql-runtimewiring]] == RuntimeWiring -The GraphQL Java `RuntimeWiring.Builder` can be used to register ``DataFetcher``s, -type resolvers, custom scalar types, and more. You can declare `RuntimeWiringConfigurer` +The GraphQL Java `RuntimeWiring.Builder` can be used to register custom scalar types, +directives, type resolvers, ``DataFetcher``s, and more. You can declare `RuntimeWiringConfigurer` beans in your Spring config to get access to the `RuntimeWiring.Builder`. The Boot starter detects such beans and adds them to <>. diff --git a/spring-graphql-docs/src/docs/asciidoc/index.adoc b/spring-graphql-docs/src/docs/asciidoc/index.adoc index b14fab74..4e1a407f 100644 --- a/spring-graphql-docs/src/docs/asciidoc/index.adoc +++ b/spring-graphql-docs/src/docs/asciidoc/index.adoc @@ -195,10 +195,11 @@ via `FileSystemResource`, to byte content via `ByteArrayResource`, or implement You can add a `RuntimeWiringConfigurer` to `GraphQlSource.Builder` to register: - - custom scalar types. - - a `TypeResolver`, if you need to override the + - Custom scalar types. + - Directives handling code. + - `TypeResolver`, if you need to override the <> for a type. - - a `DataFetcher` for a field, although most applications will simply configure + - `DataFetcher` for a field, although most applications will simply configure `AnnotatedControllerConfigurer`, which detects annotated, `DataFetcher` handler methods. The Spring Boot starter adds the `AnnotatedControllerConfigurer` by default.