nodes

package
v0.0.0-...-0d43376 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SINGLE typeRepetition = iota
	MULTIPLE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Type string `json:"type,omitempty"`
	Name string `json:"name,omitempty"`

	Fields []*Field `json:"fields,omitempty"`
}

type Field

type Field struct {
	Name       string       `json:"name,omitempty"`
	Parameters []*Parameter `json:"parameters,omitempty"`
	Type       *Type        `json:"type,omitempty"`
}

type Parameter

type Parameter struct {
	Name         string `json:"name,omitempty"`
	Type         *Type  `json:"type,omitempty"`
	DefaultValue string `json:"default_value,omitempty"`
}

Parameter represents a parameter to a graphql type

type Type

type Type struct {
	Name       string         `json:"name,omitempty"`
	Nullable   bool           `json:"nullable,omitempty"`
	Repetition typeRepetition `json:"repetition,omitempty"`
}

Jump to

Keyboard shortcuts

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