directives

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeprecated

func NewDeprecated(schema resolvers.Schema) resolvers.Directive

Types

type Deprecated

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

func (*Deprecated) Invoke

func (o *Deprecated) Invoke(args map[string]interface{}, typeName string, fieldName string) (re resolvers.DataReturn, err definitionError.GQLError)

type DeprecatedData

type DeprecatedData struct {
	IsDeprecated      bool
	DeprecationReason *string
}

Jump to

Keyboard shortcuts

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