github.com/pouriasharifi/gqlgen@v0.7.2/integration/schema-expected.graphql (about) 1 # source: http://localhost:8080/query 2 # timestamp: Thu Aug 23 2018 10:30:37 GMT+1000 (AEST) 3 4 """This directive does magical things""" 5 directive @magic(kind: Int) on FIELD_DEFINITION 6 7 enum DATE_FILTER_OP { 8 EQ 9 NEQ 10 GT 11 GTE 12 LT 13 LTE 14 } 15 16 input DateFilter { 17 value: String! 18 timezone: String = "UTC" 19 op: DATE_FILTER_OP = EQ 20 } 21 22 type Element { 23 child: Element! 24 error: Boolean! 25 mismatched: [Boolean!] 26 } 27 28 enum ErrorType { 29 CUSTOM 30 NORMAL 31 } 32 33 type Query { 34 path: [Element] 35 date(filter: DateFilter!): Boolean! 36 viewer: Viewer 37 jsonEncoding: String! 38 error(type: ErrorType = NORMAL): Boolean! 39 } 40 41 type User { 42 name: String! 43 likes: [String!]! 44 } 45 46 type Viewer { 47 user: User 48 }