schema.go (1220B)
1 package main 2 3 const introspectionQuery = ` 4 query { 5 __schema { 6 queryType { name } 7 mutationType { name } 8 subscriptionType { name } 9 types { 10 ...FullType 11 } 12 directives { 13 name 14 description 15 locations 16 args { 17 ...InputValue 18 } 19 } 20 } 21 } 22 23 fragment FullType on __Type { 24 kind 25 name 26 description 27 fields(includeDeprecated: true) { 28 name 29 description 30 args { 31 ...InputValue 32 } 33 type { 34 ...TypeRef 35 } 36 isDeprecated 37 deprecationReason 38 } 39 inputFields { 40 ...InputValue 41 } 42 interfaces { 43 ...TypeRef 44 } 45 enumValues(includeDeprecated: true) { 46 name 47 description 48 isDeprecated 49 deprecationReason 50 } 51 possibleTypes { 52 ...TypeRef 53 } 54 } 55 56 fragment InputValue on __InputValue { 57 name 58 description 59 type { 60 ...TypeRef 61 } 62 defaultValue 63 } 64 65 fragment TypeRef on __Type { 66 kind 67 name 68 ofType { 69 kind 70 name 71 ofType { 72 kind 73 name 74 ofType { 75 kind 76 name 77 ofType { 78 kind 79 name 80 ofType { 81 kind 82 name 83 ofType { 84 kind 85 name 86 } 87 } 88 } 89 } 90 } 91 } 92 } 93 `