Documentation ¶
Overview ¶
retrospection converts from an introspection result to a Schema
Index ¶
- Constants
- func Description(desc schema.Description) *string
- func NewSchema(introspection json.RawMessage) (*schema.Schema, error)
- type Directive
- type EnumValue
- type Field
- type InputValue
- type Schema
- type Type
- func (r *Type) Description() *string
- func (r *Type) EnumValues(args *struct{ IncludeDeprecated bool }) *[]*EnumValue
- func (r *Type) Fields(args *struct{ IncludeDeprecated bool }) *[]*Field
- func (r *Type) InputFields() *[]*InputValue
- func (r *Type) Interfaces() *[]*Type
- func (r *Type) Kind() string
- func (r *Type) Name() *string
- func (r *Type) OfType() *Type
- func (r *Type) PossibleTypes() *[]*Type
- func (t *Type) To__Type() (*Type, bool)
Constants ¶
View Source
const Query = `` /* 1355-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func Description ¶
func Description(desc schema.Description) *string
Types ¶
type Directive ¶
type Directive struct {
// contains filtered or unexported fields
}
func (*Directive) Args ¶
func (r *Directive) Args() []*InputValue
func (*Directive) Description ¶
type EnumValue ¶
type EnumValue struct {
// contains filtered or unexported fields
}
func (*EnumValue) DeprecationReason ¶
func (*EnumValue) Description ¶
func (*EnumValue) IsDeprecated ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) Args ¶
func (r *Field) Args() []*InputValue
func (*Field) DeprecationReason ¶
func (*Field) Description ¶
func (*Field) IsDeprecated ¶
type InputValue ¶
type InputValue struct {
// contains filtered or unexported fields
}
func (*InputValue) DefaultValue ¶
func (r *InputValue) DefaultValue() *string
func (*InputValue) Description ¶
func (r *InputValue) Description() *string
func (*InputValue) Name ¶
func (r *InputValue) Name() string
func (*InputValue) To__InputValue ¶
func (r *InputValue) To__InputValue() (*InputValue, bool)
func (*InputValue) Type ¶
func (r *InputValue) Type() *Type
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func WrapSchema ¶
WrapSchema is only used internally.
func (*Schema) Directives ¶
func (*Schema) MutationType ¶
func (*Schema) SubscriptionType ¶
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
func (*Type) Description ¶
func (*Type) EnumValues ¶
func (*Type) InputFields ¶
func (r *Type) InputFields() *[]*InputValue
func (*Type) Interfaces ¶
func (*Type) PossibleTypes ¶
Click to show internal directories.
Click to hide internal directories.