public static interface GraphQlSource.Builder
GraphQlSource.| Modifier and Type | Method and Description |
|---|---|
GraphQlSource |
build()
Build the
GraphQlSource. |
GraphQlSource.Builder |
configureGraphQl(Consumer<GraphQL.Builder> configurer)
Configure consumers to be given access to the
GraphQL.Builder used to
build GraphQL. |
GraphQlSource.Builder |
configureRuntimeWiring(RuntimeWiringConfigurer configurer)
Add a component that is given access to the
RuntimeWiring.Builder
used to register DataFetchers, custom scalar
types, type resolvers, and more. |
GraphQlSource.Builder |
exceptionResolvers(List<DataFetcherExceptionResolver> resolvers)
Add
DataFetcherExceptionResolver's to use for resolving exceptions from
DataFetcher's. |
GraphQlSource.Builder |
instrumentation(List<Instrumentation> instrumentations)
Provide
Instrumentation components to instrument the execution of
GraphQL queries. |
GraphQlSource.Builder |
schemaResources(Resource... resources)
Add ".graphqls" schema resources to be
merged into the type registry. |
GraphQlSource.Builder |
typeVisitors(List<GraphQLTypeVisitor> typeVisitors)
Add
GraphQLTypeVisitors to visit all element of the created
GraphQLSchema. |
GraphQlSource.Builder schemaResources(Resource... resources)
merged into the type registry.resources - resources for the GraphQL schemaSchemaParser.parse(File)GraphQlSource.Builder configureRuntimeWiring(RuntimeWiringConfigurer configurer)
RuntimeWiring.Builder
used to register DataFetchers, custom scalar
types, type resolvers, and more.configurer - the configurer to applySchemaGenerator.makeExecutableSchema(TypeDefinitionRegistry, RuntimeWiring)GraphQlSource.Builder exceptionResolvers(List<DataFetcherExceptionResolver> resolvers)
DataFetcherExceptionResolver's to use for resolving exceptions from
DataFetcher's.resolvers - the resolvers to addGraphQlSource.Builder typeVisitors(List<GraphQLTypeVisitor> typeVisitors)
GraphQLTypeVisitors to visit all element of the created
GraphQLSchema.
Note: Visitors are applied via
SchemaTraverser and cannot change the schema.
typeVisitors - the type visitorsSchemaTransformer.transformSchema(GraphQLSchema,
GraphQLTypeVisitor)GraphQlSource.Builder instrumentation(List<Instrumentation> instrumentations)
Instrumentation components to instrument the execution of
GraphQL queries.instrumentations - the instrumentation componentsGraphQL.Builder.instrumentation(Instrumentation)GraphQlSource.Builder configureGraphQl(Consumer<GraphQL.Builder> configurer)
GraphQL.Builder used to
build GraphQL.configurer - the configurerGraphQlSource build()
GraphQlSource.