Back to godoc.org

Package introspection

v0.12.2
Latest Go to latest

The latest major version is .

Published: Aug 18, 2020 | License: MIT | Module: github.com/99designs/gqlgen

Overview

introspection implements the spec defined in https://github.com/facebook/graphql/blob/master/spec/Section%204%20--%20Introspection.md#schema-introspection

Index

Constants

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

Query is the query generated by graphiql to determine type information

type Directive

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

type EnumValue

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

func (*EnumValue) DeprecationReason

func (f *EnumValue) DeprecationReason() *string

func (*EnumValue) IsDeprecated

func (f *EnumValue) IsDeprecated() bool

type Field

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

func (*Field) DeprecationReason

func (f *Field) DeprecationReason() *string

func (*Field) IsDeprecated

func (f *Field) IsDeprecated() bool

type InputValue

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

type Schema

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

func WrapSchema

func WrapSchema(schema *ast.Schema) *Schema

func (*Schema) Directives

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

func (*Schema) MutationType

func (s *Schema) MutationType() *Type

func (*Schema) QueryType

func (s *Schema) QueryType() *Type

func (*Schema) SubscriptionType

func (s *Schema) SubscriptionType() *Type

func (*Schema) Types

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

type Type

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

func WrapTypeFromDef

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

func WrapTypeFromType

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

func (*Type) Description

func (t *Type) Description() string

func (*Type) EnumValues

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

func (*Type) Fields

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

func (*Type) InputFields

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

func (*Type) Interfaces

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

func (*Type) Kind

func (t *Type) Kind() string

func (*Type) Name

func (t *Type) Name() *string

func (*Type) OfType

func (t *Type) OfType() *Type

func (*Type) PossibleTypes

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier