augmenters

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregation

type Aggregation struct{}

func (Aggregation) Augment

func (a Aggregation) Augment(s *ast.Schema) error

func (Aggregation) DirectiveName

func (a Aggregation) DirectiveName() string

func (Aggregation) Name

func (a Aggregation) Name() string

type Augmenter

type Augmenter interface {
	// Name of the augmenter
	Name() string
	// DirectiveName Name is the name of the directive this augmenter adds to the Schema, calling this augmenter on every
	// occurrence of this directive.
	DirectiveName() string
	// Augment is the actual method that gets called to augment the schema
	Augment(s *ast.Schema) error
}

Augmenter is a late source injector adding logic into our schema after it's loaded

type FilterArguments

type FilterArguments struct{}

func (FilterArguments) Augment

func (fa FilterArguments) Augment(s *ast.Schema) error

func (FilterArguments) DirectiveName

func (fa FilterArguments) DirectiveName() string

func (FilterArguments) Name

func (fa FilterArguments) Name() string

type FilterInput

type FilterInput struct{}

func (FilterInput) Augment

func (f FilterInput) Augment(s *ast.Schema) error

func (FilterInput) DirectiveName

func (f FilterInput) DirectiveName() string

func (FilterInput) Name

func (f FilterInput) Name() string

type Mutations

type Mutations struct{}

func (Mutations) Augment

func (m Mutations) Augment(s *ast.Schema) error

func (Mutations) DirectiveName

func (m Mutations) DirectiveName() string

func (Mutations) Name

func (m Mutations) Name() string

type Ordering

type Ordering struct{}

func (Ordering) Augment

func (o Ordering) Augment(s *ast.Schema) error

func (Ordering) DirectiveName

func (o Ordering) DirectiveName() string

func (Ordering) Name

func (p Ordering) Name() string

type Pagination

type Pagination struct{}

Pagination Augmenter allows adding pagination (limit/offset) augmenting any objects' field with @generate if it's a List

func (Pagination) Augment

func (p Pagination) Augment(s *ast.Schema) error

func (Pagination) DirectiveName

func (p Pagination) DirectiveName() string

func (Pagination) Name

func (p Pagination) Name() string

Jump to

Keyboard shortcuts

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