Add mention of directives in documentation
Closes gh-177
This commit is contained in:
@@ -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>>.
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user