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.