Documentation ¶
Overview ¶
introspection implements the spec defined in https://github.com/facebook/graphql/blob/master/spec/Section%204%20--%20Introspection.md#schema-introspection
Index ¶
- Constants
- type Directive
- type EnumValue
- type Field
- type InputValue
- type Schema
- 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
Constants ¶
View Source
const Query = `` /* 1339-byte string literal not displayed */
Query is the query generated by graphiql to determine type information
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directive ¶
type Directive struct { Name string Locations []string Args []InputValue IsRepeatable bool // contains filtered or unexported fields }
func (*Directive) Description ¶
type EnumValue ¶
type EnumValue struct { Name string // contains filtered or unexported fields }
func (*EnumValue) DeprecationReason ¶
func (*EnumValue) Description ¶
func (*EnumValue) IsDeprecated ¶
type Field ¶
type Field struct { Name string Type *Type Args []InputValue // contains filtered or unexported fields }
func (*Field) DeprecationReason ¶
func (*Field) Description ¶
func (*Field) IsDeprecated ¶
type InputValue ¶
type InputValue struct { Name string DefaultValue *string Type *Type // contains filtered or unexported fields }
func (*InputValue) Description ¶
func (f *InputValue) Description() *string
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func WrapSchema ¶
func (*Schema) Description ¶
func (*Schema) Directives ¶
func (*Schema) MutationType ¶
func (*Schema) SubscriptionType ¶
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
func WrapTypeFromDef ¶
func WrapTypeFromDef(s *ast.Schema, def *ast.Definition) *Type
func (*Type) Description ¶
func (*Type) EnumValues ¶
func (*Type) InputFields ¶
func (t *Type) InputFields() []InputValue
func (*Type) Interfaces ¶
func (*Type) PossibleTypes ¶
func (*Type) SpecifiedByURL ¶
Click to show internal directories.
Click to hide internal directories.