graphql

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

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

func (*Field) Build

func (p *Field) Build() string

func (*Field) Comment

func (p *Field) Comment(comment string) *Field

func (*Field) ListOf

func (p *Field) ListOf(typ Type) *Field

func (*Field) Of

func (p *Field) Of(typ Type) *Field

func (*Field) Require

func (p *Field) Require() *Field

type NamedType

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

func TypeOfName

func TypeOfName(name string) *NamedType

func (NamedType) Name

func (t NamedType) Name() string

type Object

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

func NewInput

func NewInput(name string) *Object

func NewType

func NewType(name string) *Object

func (*Object) AddField

func (t *Object) AddField(name string) *Field

func (*Object) AttachField

func (t *Object) AttachField(prop *Field)

func (*Object) Build

func (t *Object) Build() string

func (*Object) Name

func (t *Object) Name() string

type ScalarType

type ScalarType int
const (
	TypeInt ScalarType = iota
	TypeFloat
	TypeString
	TypeBoolean
	TypeID
)

func (ScalarType) Name

func (t ScalarType) Name() string

type Type

type Type interface {
	Name() string
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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