Add example of custom scalar type

Closes gh-161
This commit is contained in:
Rossen Stoyanchev
2021-10-15 16:59:08 +01:00
parent d5d57c9a2c
commit 28b3d13b0b

View File

@@ -128,6 +128,23 @@ detects `@Controller` classes with annotated handler methods and registers those
``DataFetcher``s.
[[boot-graphql-runtimewiring-scalar]]
=== Scalar Types
`RuntimeWiringConfigurer` can be used to register custom scalar types:
[source,java,indent=0,subs="verbatim,quotes"]
----
@Bean
RuntimeWiringConfigurer runtimeWiringConfigurer() {
GraphQLScalarType scalarType = ...;
return (wiringBuilder) -> wiringBuilder.scalar(scalarType);
}
----
[[boot-repositories-querydsl]]
== Querydsl Repositories