package introspection
import "github.com/99designs/gqlgen/graphql/introspection"
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
- func (f *EnumValue) DeprecationReason() *string
- func (f *EnumValue) Description() *string
- func (f *EnumValue) IsDeprecated() bool
- type Field
- func (f *Field) DeprecationReason() *string
- func (f *Field) Description() *string
- func (f *Field) IsDeprecated() bool
- type InputValue
- func (f *InputValue) DeprecationReason() *string
- func (f *InputValue) Description() *string
- func (f *InputValue) IsDeprecated() bool
- type Schema
- 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
- 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) IsOneOf() bool
- 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 ¶
const Query = "" /* 1341 byte string literal not displayed */
Query is the query generated by graphiql to determine type information
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) DeprecationReason ¶
func (f *InputValue) DeprecationReason() *string
func (*InputValue) Description ¶
func (f *InputValue) Description() *string
func (*InputValue) IsDeprecated ¶
func (f *InputValue) IsDeprecated() bool
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func WrapSchema ¶
func (*Schema) Description ¶
func (*Schema) Directives ¶
func (*Schema) MutationType ¶
func (*Schema) QueryType ¶
func (*Schema) SubscriptionType ¶
func (*Schema) Types ¶
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
func WrapTypeFromDef ¶
func WrapTypeFromDef(s *ast.Schema, def *ast.Definition) *Type
func WrapTypeFromType ¶
func (*Type) Description ¶
func (*Type) EnumValues ¶
func (*Type) Fields ¶
func (*Type) InputFields ¶
func (t *Type) InputFields() []InputValue
func (*Type) Interfaces ¶
func (*Type) IsOneOf ¶
func (*Type) Kind ¶
func (*Type) Name ¶
func (*Type) OfType ¶
func (*Type) PossibleTypes ¶
func (*Type) SpecifiedByURL ¶
Source Files ¶
introspection.go query.go schema.go type.go
- Version
- v0.17.73 (latest)
- Published
- May 2, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 3 days ago –
Tools for package owners.