Package 

Annotation ContactDirective

  • All Implemented Interfaces:

    
    public @interface ContactDirective
    
                        
    directive @contact(
      "Contact title of the subgraph owner"
      name: String!
      "URL where the subgraph's owner can be reached"
      url: String
      "Other relevant notes can be included here; supports markdown links"
      description: String
    ) on SCHEMA

    Contact schema directive can be used to provide team contact information to your subgraph schema. This information is automatically parsed and displayed by Apollo Studio.

    Example usage on schema class:

    @ContactDirective(
      name = "My Team Name",
      url = "https://myteam.slack.com/archives/teams-chat-room-url",
      description = "send urgent issues to [#oncall](https://yourteam.slack.com/archives/oncall)."
    )
    class MySchema
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class 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