introspection

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const Query = `` /* 1306-byte string literal not displayed */

Query is the query generated by graphiql to determine type information

Variables

This section is empty.

Functions

This section is empty.

Types

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL