Add mention of directives in documentation

Closes gh-177
This commit is contained in:
Rossen Stoyanchev
2021-11-02 14:57:47 +00:00
parent f5c17b52d3
commit 6f16e5e6ea
2 changed files with 6 additions and 5 deletions

View File

@@ -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 <<index#execution-graphqlsource,GraphQlSource.Builder>>.

View File

@@ -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
<<execution-graphqlsource-default-type-resolver>> 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.