Annotation Type GraphQLInterface


@Documented
@Retention(RUNTIME)
@Target(TYPE)
public @interface GraphQLInterface
Annotation used to mark a Java interface that should become an interface within the GraphQL API. GraphQL interfaces must contain one or more fields.

 @GraphQLInterface
 public interface Vehicle {
   @GraphQLField
   String id();
 }

 @GraphQLObject
 public class Spaceship implements Vehicle {
   ...
 }