Back to

Package resolvergen

Latest Go to latest

The latest major version is .

Published: Sep 21, 2020 | License: MIT | Module:


func New

func New() plugin.Plugin

type File

type File struct {
	// These are separated because the type definition of the resolver object may live in a different file from the
	//resolver method implementations, for example when extending a type in a different graphql schema file
	Objects   []*codegen.Object
	Resolvers []*Resolver

	RemainingSource string
	// contains filtered or unexported fields

func (*File) Imports

func (f *File) Imports() string

type Plugin

type Plugin struct{}

func (*Plugin) GenerateCode

func (m *Plugin) GenerateCode(data *codegen.Data) error

func (*Plugin) Name

func (m *Plugin) Name() string

type Resolver

type Resolver struct {
	Object         *codegen.Object
	Field          *codegen.Field
	Implementation string

type ResolverBuild

type ResolverBuild struct {
	HasRoot      bool
	PackageName  string
	ResolverType string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier