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