github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/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 complexity(value: Int!): Boolean! 39 } 40 41 enum ErrorType { 42 CUSTOM 43 NORMAL 44 } 45 46 # this is a comment with a `backtick`