gqlgen: github.com/99designs/gqlgen/graphql/introspection Index | Files

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

Package Files

introspection.go query.go schema.go type.go

Constants

const Query = "" /* 1308 byte string literal not displayed */

Query is the query generated by graphiql to determine type information

type Directive Uses

type Directive struct {
    Name        string
    Description string
    Locations   []string
    Args        []InputValue
}

type EnumValue Uses

type EnumValue struct {
    Name        string
    Description string
    // contains filtered or unexported fields
}

func (*EnumValue) DeprecationReason Uses

func (f *EnumValue) DeprecationReason() *string

func (*EnumValue) IsDeprecated Uses

func (f *EnumValue) IsDeprecated() bool

type Field Uses

type Field struct {
    Name        string
    Description string
    Type        *Type
    Args        []InputValue
    // contains filtered or unexported fields
}

func (*Field) DeprecationReason Uses

func (f *Field) DeprecationReason() *string

func (*Field) IsDeprecated Uses

func (f *Field) IsDeprecated() bool

type InputValue Uses

type InputValue struct {
    Name         string
    Description  string
    DefaultValue *string
    Type         *Type
}

type Schema Uses

type Schema struct {
    // contains filtered or unexported fields
}

func WrapSchema Uses

func WrapSchema(schema *ast.Schema) *Schema

func (*Schema) Directives Uses

func (s *Schema) Directives() []Directive

func (*Schema) MutationType Uses

func (s *Schema) MutationType() *Type

func (*Schema) QueryType Uses

func (s *Schema) QueryType() *Type

func (*Schema) SubscriptionType Uses

func (s *Schema) SubscriptionType() *Type

func (*Schema) Types Uses

func (s *Schema) Types() []Type

type Type Uses

type Type struct {
    // contains filtered or unexported fields
}

func WrapTypeFromDef Uses

func WrapTypeFromDef(s *ast.Schema, def *ast.Definition) *Type

func WrapTypeFromType Uses

func WrapTypeFromType(s *ast.Schema, typ *ast.Type) *Type

func (*Type) Description Uses

func (t *Type) Description() string

func (*Type) EnumValues Uses

func (t *Type) EnumValues(includeDeprecated bool) []EnumValue

func (*Type) Fields Uses

func (t *Type) Fields(includeDeprecated bool) []Field

func (*Type) InputFields Uses

func (t *Type) InputFields() []InputValue

func (*Type) Interfaces Uses

func (t *Type) Interfaces() []Type

func (*Type) Kind Uses

func (t *Type) Kind() string

func (*Type) Name Uses

func (t *Type) Name() *string

func (*Type) OfType Uses

func (t *Type) OfType() *Type

func (*Type) PossibleTypes Uses

func (t *Type) PossibleTypes() []Type

Package introspection imports 2 packages (graph) and is imported by 87 packages. Updated 2020-02-17. Refresh now. Tools for package owners.