@PublicApi public class TypeRuntimeWiring extends java.lang.Object
RuntimeWiring
to wire together a functional GraphQLSchema
Modifier and Type | Class and Description |
---|---|
static class |
TypeRuntimeWiring.Builder |
Modifier and Type | Method and Description |
---|---|
DataFetcher |
getDefaultDataFetcher() |
EnumValuesProvider |
getEnumValuesProvider() |
java.util.Map<java.lang.String,DataFetcher> |
getFieldDataFetchers() |
java.lang.String |
getTypeName() |
TypeResolver |
getTypeResolver() |
static TypeRuntimeWiring.Builder |
newTypeWiring(java.lang.String typeName)
Creates a new type wiring builder
|
static TypeRuntimeWiring |
newTypeWiring(java.lang.String typeName,
java.util.function.UnaryOperator<TypeRuntimeWiring.Builder> builderFunction)
This form allows a lambda to be used as the builder
|
public static TypeRuntimeWiring.Builder newTypeWiring(java.lang.String typeName)
typeName
- the name of the type to wirepublic static TypeRuntimeWiring newTypeWiring(java.lang.String typeName, java.util.function.UnaryOperator<TypeRuntimeWiring.Builder> builderFunction)
typeName
- the name of the type to wirebuilderFunction
- a function that will be given the builder to usepublic java.lang.String getTypeName()
public java.util.Map<java.lang.String,DataFetcher> getFieldDataFetchers()
public DataFetcher getDefaultDataFetcher()
public TypeResolver getTypeResolver()
public EnumValuesProvider getEnumValuesProvider()