Package graphql.schema.idl
Class TypeRuntimeWiring
java.lang.Object
graphql.schema.idl.TypeRuntimeWiring
A type runtime wiring is a specification of the data fetchers and possible type resolver for a given type name.
This is used by
This is used by
RuntimeWiring
to wire together a functional GraphQLSchema
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static TypeRuntimeWiring.Builder
newTypeWiring
(String typeName) Creates a new type wiring builderstatic TypeRuntimeWiring
newTypeWiring
(String typeName, UnaryOperator<TypeRuntimeWiring.Builder> builderFunction) This form allows a lambda to be used as the builderstatic void
setStrictModeJvmWide
(boolean strictMode) By defaultTypeRuntimeWiring
builders are in strict mode, but you can set a JVM wide value too
-
Method Details
-
setStrictModeJvmWide
public static void setStrictModeJvmWide(boolean strictMode) By defaultTypeRuntimeWiring
builders are in strict mode, but you can set a JVM wide value too- Parameters:
strictMode
- the desired strict mode state- See Also:
-
getStrictModeJvmWide
public static boolean getStrictModeJvmWide()- Returns:
- the current JVM wide state of strict mode
-
newTypeWiring
Creates a new type wiring builder- Parameters:
typeName
- the name of the type to wire- Returns:
- the builder
-
newTypeWiring
public static TypeRuntimeWiring newTypeWiring(String typeName, UnaryOperator<TypeRuntimeWiring.Builder> builderFunction) This form allows a lambda to be used as the builder- Parameters:
typeName
- the name of the type to wirebuilderFunction
- a function that will be given the builder to use- Returns:
- the same builder back please
-
getTypeName
-
getFieldDataFetchers
-
getDefaultDataFetcher
-
getTypeResolver
-
getEnumValuesProvider
-