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 |
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 |
runtimeWiring(RuntimeWiring runtimeWiring)
Set a
RuntimeWiring to contribute data fetchers and more. |
GraphQlSource.Builder |
schemaResources(Resource... resources)
Add ".graphqls" schema resources to be
merged into the type registry. |
GraphQlSource.Builder |
typeVisitors(List<GraphQLTypeVisitor> typeVisitors)
Add
GraphQLTypeVisitor's to transform the underlying
GraphQLSchema with. |
GraphQlSource.Builder schemaResources(Resource... resources)
merged into the type registry.resources - resources for the GraphQL schemaSchemaParser.parse(File)GraphQlSource.Builder runtimeWiring(RuntimeWiring runtimeWiring)
RuntimeWiring to contribute data fetchers and more.runtimeWiring - the runtime wiring for contributionSchemaGenerator.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)
GraphQLTypeVisitor's to transform the underlying
GraphQLSchema with.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.