gql

package
v0.0.0-...-1e7b23d Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutationType

type MutationType int
const (
	MutationCreate MutationType = iota
	MutationUpdate
	MutationDelete
)

type Option

type Option func(*ResolverPlugin)

func WithRelayNodeEx

func WithRelayNodeEx() Option

WithRelayNodeEx enable relay node extended by globalID.

type ResolverPlugin

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

func NewResolverPlugin

func NewResolverPlugin(opt ...Option) *ResolverPlugin

func (ResolverPlugin) FormatFile

func (r ResolverPlugin) FormatFile(path string) error

func (ResolverPlugin) GenerateCode

func (r ResolverPlugin) GenerateCode(data *codegen.Data) error

GenerateCode implement api.CodeGenerator

func (ResolverPlugin) Implement

func (r ResolverPlugin) Implement(f *codegen.Field) (val string)

Implement gqlgen api.ResolverImplementer

func (ResolverPlugin) Mutation

func (r ResolverPlugin) Mutation(f *codegen.Field) (string, error)

func (ResolverPlugin) Name

func (r ResolverPlugin) Name() string

func (ResolverPlugin) OverrideResolverStruct

func (r ResolverPlugin) OverrideResolverStruct(config *config.Config) error

func (ResolverPlugin) Query

func (r ResolverPlugin) Query(f *codegen.Field) (string, error)

Jump to

Keyboard shortcuts

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