Package 

Class GraphglueGraphQLConfiguration.GraphglueSchemaGeneratorHooks

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final KotlinDirectiveWiringFactory wiringFactory
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

      • GraphglueGraphQLConfiguration.GraphglueSchemaGeneratorHooks

        GraphglueGraphQLConfiguration.GraphglueSchemaGeneratorHooks(SchemaGeneratorHooks delegate)
        Parameters:
        delegate - delegate used as fallback for all functions, used to provide better extensibility
    • Method Detail

      • 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 property
        property - 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 check
        inputType - 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