introspection

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUERY               DirectiveLocation = "QUERY"
	MUTATION                              = "MUTATION"
	FIELD                                 = "FIELD"
	FRAGMENT_DEFINITION                   = "FRAGMENT_DEFINITION"
	FRAGMENT_SPREAD                       = "FRAGMENT_SPREAD"
	INLINE_FRAGMENT                       = "INLINE_FRAGMENT"
)
View Source
const (
	SCALAR       TypeKind = "SCALAR"
	OBJECT                = "OBJECT"
	INTERFACE             = "INTERFACE"
	UNION                 = "UNION"
	ENUM                  = "ENUM"
	INPUT_OBJECT          = "INPUT_OBJECT"
	LIST                  = "LIST"
	NON_NULL              = "NON_NULL"
)

Variables

This section is empty.

Functions

func AddIntrospectionToSchema

func AddIntrospectionToSchema(schema *graphql.Schema)

func ComputeSchemaJSON

func ComputeSchemaJSON(schemaBuilderSchema schemabuilder.Schema) ([]byte, error)

ComputeSchemaJSON returns the result of executing a GraphQL introspection query.

Types

type Directive

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

type DirectiveLocation

type DirectiveLocation string

type EnumValue

type EnumValue struct {
	Name              string
	Description       string
	IsDeprecated      bool
	DeprecationReason string
}

type InputValue

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

type Schema

type Schema struct {
	Types            []Type
	QueryType        *Type
	MutationType     *Type
	SubscriptionType *Type
	Directives       []Directive
}

type Type

type Type struct {
	Inner graphql.Type `graphql:"-"`
}

type TypeKind

type TypeKind string

Jump to

Keyboard shortcuts

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