-
- All Implemented Interfaces:
-
io.github.graphglue.graphql.schema.SchemaTransformer
public final class SchemaTransformationContext implements SchemaTransformer
-
-
Field Summary
Fields Modifier and Type Field Description private final GraphQLCodeRegistry.Builder
codeRegistry
private final Neo4jMappingContext
mappingContext
private final NodeDefinitionCollection
nodeDefinitionCollection
private final KotlinDataFetcherFactoryProvider
dataFetcherFactoryProvider
private final SubFilterGenerator
subFilterGenerator
private final CacheMap<String, GraphQLInputType>
inputTypeCache
private final CacheMap<String, GraphQLOutputType>
outputTypeCache
private final GraphQLSchema
schema
private final FilterDefinitionCollection
filterDefinitionCollection
-
Constructor Summary
Constructors Constructor Description SchemaTransformationContext(TraverserContext<?> context, SchemaTransformer schemaTransformer)
-
Method Summary
Modifier and Type Method Description final GraphQLCodeRegistry.Builder
getCodeRegistry()
Code Registry to register new DataFetchers Neo4jMappingContext
getMappingContext()
mapping context used to get type information from Neo4j NodeDefinitionCollection
getNodeDefinitionCollection()
collection of all NodeDefinitions KotlinDataFetcherFactoryProvider
getDataFetcherFactoryProvider()
provides function and property data fetchers SubFilterGenerator
getSubFilterGenerator()
used to generate the filter entries CacheMap<String, GraphQLInputType>
getInputTypeCache()
Cache for GraphQLInputTypes CacheMap<String, GraphQLOutputType>
getOutputTypeCache()
Cache for GraphQLOutputTypes GraphQLSchema
getSchema()
The new modified schema FilterDefinitionCollection
getFilterDefinitionCollection()
Collection with all filter definitions final Unit
registerPropertyDataFetcher(GraphQLFieldsContainer type, String fieldName, KClass<?> kClass)
Registers a data fetcher for a specific property final Unit
registerFunctionDataFetcher(GraphQLFieldsContainer type, String fieldName, KClass<?> kClass)
Registers a data fetcher for a specific function -
-
Constructor Detail
-
SchemaTransformationContext
SchemaTransformationContext(TraverserContext<?> context, SchemaTransformer schemaTransformer)
-
-
Method Detail
-
getCodeRegistry
final GraphQLCodeRegistry.Builder getCodeRegistry()
Code Registry to register new DataFetchers
-
getMappingContext
Neo4jMappingContext getMappingContext()
mapping context used to get type information from Neo4j
-
getNodeDefinitionCollection
NodeDefinitionCollection getNodeDefinitionCollection()
collection of all NodeDefinitions
-
getDataFetcherFactoryProvider
KotlinDataFetcherFactoryProvider getDataFetcherFactoryProvider()
provides function and property data fetchers
-
getSubFilterGenerator
SubFilterGenerator getSubFilterGenerator()
used to generate the filter entries
-
getInputTypeCache
CacheMap<String, GraphQLInputType> getInputTypeCache()
Cache for GraphQLInputTypes
-
getOutputTypeCache
CacheMap<String, GraphQLOutputType> getOutputTypeCache()
Cache for GraphQLOutputTypes
-
getSchema
GraphQLSchema getSchema()
The new modified schema
-
getFilterDefinitionCollection
FilterDefinitionCollection getFilterDefinitionCollection()
Collection with all filter definitions
-
registerPropertyDataFetcher
final Unit registerPropertyDataFetcher(GraphQLFieldsContainer type, String fieldName, KClass<?> kClass)
Registers a data fetcher for a specific property
- Parameters:
type
- the container type on which to register the data fetcherfieldName
- the name of the propertykClass
- the class which contains the property to use for data fetching
-
registerFunctionDataFetcher
final Unit registerFunctionDataFetcher(GraphQLFieldsContainer type, String fieldName, KClass<?> kClass)
Registers a data fetcher for a specific function
- Parameters:
type
- the container type on which to register the data fetcherfieldName
- the name of the functionkClass
- the class which contains the function to use for data fetching
-
-
-
-