github.com/zikaeroh/gqlgen@v0.7.2/integration/schema.graphql (about)

     1  "This directive does magical things"
     2  directive @magic(kind: Int) on FIELD_DEFINITION
     3  
     4  type Element {
     5      child: Element!
     6      error: Boolean!
     7      mismatched: [Boolean!]
     8  }
     9  
    10  enum DATE_FILTER_OP {
    11      # multi
    12      # line
    13      # comment
    14      EQ
    15      NEQ
    16      GT
    17      GTE
    18      LT
    19      LTE
    20  }
    21  
    22  input DateFilter {
    23      value: String!
    24      timezone: String = "UTC"
    25      op: DATE_FILTER_OP = EQ
    26  }
    27  
    28  type Viewer {
    29      user: User
    30  }
    31  
    32  type Query {
    33      path: [Element]
    34      date(filter: DateFilter!): Boolean!
    35      viewer: Viewer
    36      jsonEncoding: String!
    37      error(type: ErrorType = NORMAL): Boolean!
    38  }
    39  
    40  enum ErrorType {
    41      CUSTOM
    42      NORMAL
    43  }
    44  
    45  # this is a comment with a `backtick`