Package 

Annotation ExtendsDirective

  • All Implemented Interfaces:

    
    public @interface ExtendsDirective
    
                        
    directive @extends on OBJECT | INTERFACE

    Extends directive is used to represent type extensions in the schema. Native type extensions are currently unsupported by the graphql-kotlin libraries. Federated extended types should have corresponding @key directive defined that specifies primary key required to fetch the underlying object.

    Example: Given

    @KeyDirective(FieldSet("id"))
    @ExtendsDirective
    class Product(@ExternalDirective val id: String) {
      fun newFunctionality(): String = "whatever"
    }

    should generate

    type Product @extends @key(fields : "id") {
      id: String! @external
      newFunctionality: String!
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • 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