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

Parameters

delegate

delegate used as fallback for all functions, used to provide better extensibility

Constructors

Link copied to clipboard
constructor(delegate: SchemaGeneratorHooks)

Properties

Link copied to clipboard
private val delegate: SchemaGeneratorHooks
Link copied to clipboard
open override val wiringFactory: KotlinDirectiveWiringFactory

Functions

Link copied to clipboard
open override fun didApplyDirective(directiveInfo: DirectiveMetaInformation, directive: GraphQLAppliedDirective): GraphQLAppliedDirective
Link copied to clipboard
open override fun didBuildSchema(builder: GraphQLSchema.Builder): GraphQLSchema.Builder
Link copied to clipboard
open override fun didGenerateDirective(directiveInfo: DirectiveMetaInformation, directive: GraphQLDirective): GraphQLDirective
Link copied to clipboard
open override fun didGenerateGraphQLType(type: KType, generatedType: GraphQLType): GraphQLType
Link copied to clipboard
open override fun didGenerateMutationField(kClass: KClass<*>, function: KFunction<*>, fieldDefinition: GraphQLFieldDefinition): GraphQLFieldDefinition
Link copied to clipboard
open override fun didGenerateMutationObject(type: GraphQLObjectType): GraphQLObjectType
Link copied to clipboard
open override fun didGenerateQueryField(kClass: KClass<*>, function: KFunction<*>, fieldDefinition: GraphQLFieldDefinition): GraphQLFieldDefinition
Link copied to clipboard
open override fun didGenerateQueryObject(type: GraphQLObjectType): GraphQLObjectType
Link copied to clipboard
open override fun didGenerateSubscriptionField(kClass: KClass<*>, function: KFunction<*>, fieldDefinition: GraphQLFieldDefinition): GraphQLFieldDefinition
Link copied to clipboard
open override fun didGenerateSubscriptionObject(type: GraphQLObjectType): GraphQLObjectType
Link copied to clipboard
open override fun isValidAdditionalType(kClass: KClass<*>, inputType: Boolean): Boolean

Checks if an additional type is valid Used when adding subtypes of interfaces Ignores Node types, as those are handled manually

Link copied to clipboard
open override fun isValidFunction(kClass: KClass<*>, function: KFunction<*>): Boolean
Link copied to clipboard
open override fun isValidProperty(kClass: KClass<*>, property: KProperty<*>): Boolean

Called to check if a property should be included in the schema Ignores all properties annotated with NodeRelationship, as those are handled manually

Link copied to clipboard
open override fun isValidSubscriptionReturnType(kClass: KClass<*>, function: KFunction<*>): Boolean
Link copied to clipboard
open override fun isValidSuperclass(kClass: KClass<*>): Boolean

Checks if a superclass is valid Used when adding interfaces to an object type Ignores Node types, as those are handled manually

Link copied to clipboard
open override fun onRewireGraphQLType(generatedType: GraphQLSchemaElement, coordinates: FieldCoordinates?, codeRegistry: GraphQLCodeRegistry.Builder): GraphQLSchemaElement
Link copied to clipboard
open override fun willAddGraphQLTypeToSchema(type: KType, generatedType: GraphQLType): GraphQLType
Link copied to clipboard
open override fun willApplyDirective(directiveInfo: DirectiveMetaInformation, directive: GraphQLDirective): GraphQLAppliedDirective?
Link copied to clipboard
open override fun willBuildSchema(queries: List<TopLevelObject>, mutations: List<TopLevelObject>, subscriptions: List<TopLevelObject>, additionalTypes: Set<KType>, additionalInputTypes: Set<KType>, schemaObject: TopLevelObject?): GraphQLSchema.Builder
Link copied to clipboard
open override fun willGenerateDirective(directiveInfo: DirectiveMetaInformation): GraphQLDirective?
Link copied to clipboard
open override fun willGenerateGraphQLType(type: KType): GraphQLType?
Link copied to clipboard
open override fun willResolveInputMonad(type: KType): KType
Link copied to clipboard
open override fun willResolveMonad(type: KType): KType