Package graphql.schema.idl
Class RuntimeWiring
java.lang.Object
graphql.schema.idl.RuntimeWiring
A runtime wiring is a specification of data fetchers, type resolvers and custom scalars that are needed
to wire together a functional
GraphQLSchema
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GraphQLCodeRegistry
private final GraphqlTypeComparatorRegistry
private final Map
<String, Map<String, DataFetcher>> private final Map
<String, DataFetcher> private final List
<SchemaDirectiveWiring> private final Map
<String, EnumValuesProvider> private final GraphqlFieldVisibility
static final RuntimeWiring
This is a Runtime wiring which provides mocked types resolver and scalars.private final Map
<String, SchemaDirectiveWiring> private final Map
<String, GraphQLScalarType> private final Collection
<SchemaGeneratorPostProcessing> private final Map
<String, TypeResolver> private final WiringFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDataFetcherForType
(String typeName) getDefaultDataFetcherForType
(String typeName) static RuntimeWiring.Builder
static RuntimeWiring.Builder
newRuntimeWiring
(RuntimeWiring originalRuntimeWiring) transform
(Consumer<RuntimeWiring.Builder> builderConsumer) This helps you transform the current RuntimeWiring object into another one by starting a builder with all the current values and allows you to transform it how you want.
-
Field Details
-
dataFetchers
-
defaultDataFetchers
-
scalars
-
typeResolvers
-
registeredDirectiveWiring
-
directiveWiring
-
wiringFactory
-
enumValuesProviders
-
schemaGeneratorPostProcessings
-
fieldVisibility
-
codeRegistry
-
comparatorRegistry
-
MOCKED_WIRING
This is a Runtime wiring which provides mocked types resolver and scalars. Useful for testing only.
-
-
Constructor Details
-
RuntimeWiring
-
-
Method Details
-
newRuntimeWiring
- Returns:
- a builder of Runtime Wiring
-
newRuntimeWiring
- Parameters:
originalRuntimeWiring
- the runtime wiring to start from- Returns:
- a builder of Runtime Wiring based on the provided one
-
transform
This helps you transform the current RuntimeWiring object into another one by starting a builder with all the current values and allows you to transform it how you want.- Parameters:
builderConsumer
- the consumer code that will be given a builder to transform- Returns:
- a new RuntimeWiring object based on calling build on that builder
-
getCodeRegistry
-
getScalars
-
getDataFetchers
-
getDataFetcherForType
-
getDefaultDataFetcherForType
-
getTypeResolvers
-
getEnumValuesProviders
-
getWiringFactory
-
getFieldVisibility
-
getRegisteredDirectiveWiring
-
getDirectiveWiring
-
getSchemaGeneratorPostProcessings
-
getComparatorRegistry
-