Class GraphQLInterfaceTypeResolver

java.lang.Object
graphql.kickstart.annotations.GraphQLInterfaceTypeResolver
All Implemented Interfaces:
graphql.schema.TypeResolver, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class GraphQLInterfaceTypeResolver extends Object implements graphql.schema.TypeResolver, org.springframework.context.ApplicationContextAware
Type resolver for GraphQL interfaces.
See Also:
  • Issue with workaround.

    Apply this interface to GraphQL interfaces using the graphql.annotations.annotationTypes.GraphQLTypeResolver annotation.

  • Constructor Details

    • GraphQLInterfaceTypeResolver

      public GraphQLInterfaceTypeResolver()
  • Method Details

    • getType

      public graphql.schema.GraphQLObjectType getType(graphql.TypeResolutionEnvironment env)
      Specified by:
      getType in interface graphql.schema.TypeResolver
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware