Package 

Annotation GraphQLType

  • All Implemented Interfaces:

    
    public @interface GraphQLType
    
                        

    Can be used on any field to set the return type. The type name must match exactly to some additional type that was provided to the schema generator, or it will fail on building the schema.

    Internally, the generator will check for this anntation first and just return a type reference with this name instead of running reflection on the Kotlin code. This means that you can use this annotation with any Kotlin return type. That does mean you could have runtime exceptions if the model you actually return doesn't match the GraphQL schema type.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String typeName
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail