graph

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorNoRoots = errors.New("no root query or mutation directories found")

Functions

This section is empty.

Types

type Graph

type Graph struct {
	DocumentRoot string
	ResolverDir  string

	Query    *graphql.Object
	Mutation *graphql.Object
}

func (*Graph) Build

func (g *Graph) Build(c *config.GraphConf) error

type Unknown

type Unknown struct {
	ReferencedType ast.Type

	Referencer interface{}
	// contains filtered or unexported fields
}

func NewType

func NewType(t ast.Type, referencer interface{}) (graphql.Type, *Unknown)

func (*Unknown) Description

func (*Unknown) Description() string

func (*Unknown) Error

func (*Unknown) Error() error

func (*Unknown) ModifyType

func (u *Unknown) ModifyType(t graphql.Type) graphql.Type

func (*Unknown) Name

func (u *Unknown) Name() string

func (*Unknown) String

func (*Unknown) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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