-
- All Implemented Interfaces:
-
com.expediagroup.graphql.generator.hooks.SchemaGeneratorHooks
public final class GraphglueGraphQLConfiguration.GraphglueSchemaGeneratorHooks implements SchemaGeneratorHooks
SchemaGeneratorHooks which handles rewiring of BaseProperty backed files, collects all Node types and generates NodeDefinitions for it, and collects queries for Node types
-
-
Field Summary
Fields Modifier and Type Field Description private final KotlinDirectiveWiringFactory
wiringFactory
-
Constructor Summary
Constructors Constructor Description GraphglueGraphQLConfiguration.GraphglueSchemaGeneratorHooks(SchemaGeneratorHooks delegate)
-
Method Summary
Modifier and Type Method Description KotlinDirectiveWiringFactory
getWiringFactory()
Boolean
isValidProperty(KClass<?> kClass, KProperty<?> property)
Called to check if a property should be included in the schema Ignores all properties annotated with NodeRelationship, as those are handled manually Boolean
isValidAdditionalType(KClass<?> kClass, Boolean inputType)
Checks if an additional type is valid Used when adding subtypes of interfaces Ignores Node types, as those are handled manually Boolean
isValidSuperclass(KClass<?> kClass)
Checks if a superclass is valid Used when adding interfaces to an object type Ignores Node types, as those are handled manually -
Methods inherited from class io.github.graphglue.graphql.GraphglueGraphQLConfiguration.GraphglueSchemaGeneratorHooks
didGenerateGraphQLType, didGenerateMutationField, didGenerateMutationObject, didGenerateQueryField, didGenerateQueryObject, didGenerateSubscriptionField, didGenerateSubscriptionObject, isValidFunction, isValidSubscriptionReturnType, onRewireGraphQLType, willAddGraphQLTypeToSchema, willBuildSchema, willGenerateGraphQLType, willResolveInputMonad, willResolveMonad
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getWiringFactory
KotlinDirectiveWiringFactory getWiringFactory()
-
isValidProperty
Boolean isValidProperty(KClass<?> kClass, KProperty<?> property)
Called to check if a property should be included in the schema Ignores all properties annotated with NodeRelationship, as those are handled manually
- Parameters:
kClass
- the class which contains the propertyproperty
- the property to validate
-
isValidAdditionalType
Boolean isValidAdditionalType(KClass<?> kClass, Boolean inputType)
Checks if an additional type is valid Used when adding subtypes of interfaces Ignores Node types, as those are handled manually
- Parameters:
kClass
- the class to checkinputType
- shall an input type be generated
-
isValidSuperclass
Boolean isValidSuperclass(KClass<?> kClass)
Checks if a superclass is valid Used when adding interfaces to an object type Ignores Node types, as those are handled manually
- Parameters:
kClass
- the class to check
-
-
-
-