github.com/operandinc/gqlgen@v0.16.1/integration/schema.graphql (about)

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