@Configuration
class GraphglueGraphQLConfiguration

Configures beans used in combination with graphql-kotlin and graphql-java

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class GraphglueSchemaGeneratorHooks(val delegate: SchemaGeneratorHooks) : SchemaGeneratorHooks

SchemaGeneratorHooks which handles rewiring of BaseNodePropertyDelegate backed files, collects all Node types and generates NodeDefinitions for it, and collects queries for Node types

Properties

Link copied to clipboard
private val logger: Logger?

Logger used to print the GraphQL schema

Functions

Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun graphglueSchema(config: GraphQLConfigurationProperties, graphglueConfig: GraphglueConfigurationProperties, queries: Optional<List<Query>>, mutations: Optional<List<Mutation>>, subscriptions: Optional<List<Subscription>>, schemaConfig: SchemaGeneratorConfig, dataFetcherFactoryProvider: KotlinDataFetcherFactoryProvider, filters: List<TypeFilterDefinitionEntry>, additionalFilterBeans: Map<String, FilterEntryDefinition>, additionalOrderBeans: Map<String, OrderPart<*>>, nodeDefinitionCollection: NodeDefinitionCollection, nodeFilterGenerators: List<NodeFilterGenerator>, neo4jMappingContext: Neo4jMappingContext, reactiveNeo4jClient: ReactiveNeo4jClient, renderer: Renderer): GraphglueSchema

Generates the GraphQLSchema and the NodeDefinitionCollection Automatically adds the generated Node type based connection queries

Link copied to clipboard
@Bean
fun schema(schema: GraphglueSchema): GraphQLSchema

GraphQLSchema based on GraphglueSchema

Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun schemaConfig(config: GraphQLConfigurationProperties, topLevelNames: Optional<TopLevelNames>, hooks: Optional<SchemaGeneratorHooks>, dataFetcherFactoryProvider: KotlinDataFetcherFactoryProvider, additionalTypes: Set<GraphQLType>): SchemaGeneratorConfig

Config for the schema generator, automatically adds io.github.graphglue to the supported packages