Query is the query generated by graphiql to determine type information
const Query = `
query IntrospectionQuery {
__schema {
description
queryType {
name
}
mutationType {
name
}
subscriptionType {
name
}
types {
...FullType
}
directives {
name
description
locations
args {
...InputValue
}
}
}
}
fragment FullType on __Type {
kind
name
description
specifiedByURL
fields(includeDeprecated: true) {
name
description
args {
...InputValue
}
type {
...TypeRef
}
isDeprecated
deprecationReason
}
inputFields {
...InputValue
}
interfaces {
...TypeRef
}
enumValues(includeDeprecated: true) {
name
description
isDeprecated
deprecationReason
}
possibleTypes {
...TypeRef
}
}
fragment InputValue on __InputValue {
name
description
type {
...TypeRef
}
defaultValue
}
fragment TypeRef on __Type {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
}
}
}
`
type Directive struct { Name string Locations []string Args []InputValue IsRepeatable bool // contains filtered or unexported fields }
func (f *Directive) Description() *string
type EnumValue struct { Name string // contains filtered or unexported fields }
func (f *EnumValue) DeprecationReason() *string
func (f *EnumValue) Description() *string
func (f *EnumValue) IsDeprecated() bool
type Field struct { Name string Type *Type Args []InputValue // contains filtered or unexported fields }
func (f *Field) DeprecationReason() *string
func (f *Field) Description() *string
func (f *Field) IsDeprecated() bool
type InputValue struct { Name string DefaultValue *string Type *Type // contains filtered or unexported fields }
func (f *InputValue) Description() *string
type Schema struct {
// contains filtered or unexported fields
}
func WrapSchema(schema *ast.Schema) *Schema
func (s *Schema) Description() *string
func (s *Schema) Directives() []Directive
func (s *Schema) MutationType() *Type
func (s *Schema) QueryType() *Type
func (s *Schema) SubscriptionType() *Type
func (s *Schema) Types() []Type
type Type struct {
// contains filtered or unexported fields
}
func WrapTypeFromDef(s *ast.Schema, def *ast.Definition) *Type
func WrapTypeFromType(s *ast.Schema, typ *ast.Type) *Type
func (t *Type) Description() *string
func (t *Type) EnumValues(includeDeprecated bool) []EnumValue
func (t *Type) Fields(includeDeprecated bool) []Field
func (t *Type) InputFields() []InputValue
func (t *Type) Interfaces() []Type
func (t *Type) Kind() string
func (t *Type) Name() *string
func (t *Type) OfType() *Type
func (t *Type) PossibleTypes() []Type
func (t *Type) SpecifiedByURL() *string