Documentation
¶
Index ¶
- 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) SpecifiedBy() *string
- type WrapSchemaOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directive ¶
type Directive struct { Name string Description string Locations []string Args []InputValue IsRepeatable bool }
type Field ¶
type Field struct { Name string Description string Type *Type Args []InputValue // contains filtered or unexported fields }
func (*Field) DeprecationReason ¶
func (*Field) IsDeprecated ¶
type InputValue ¶
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func WrapSchema ¶
func WrapSchema(schema *ast.Schema, opts ...WrapSchemaOption) *Schema
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) SpecifiedBy ¶
type WrapSchemaOption ¶
type WrapSchemaOption func(s *Schema)
func WithReservedTypes ¶
func WithReservedTypes(want bool) WrapSchemaOption
Click to show internal directories.
Click to hide internal directories.