bulkgen

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package bulkgen provides a gqlgen plugin to generate bulk resolver functions used for mutations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() plugin.Plugin

New returns a new plugin

Types

type BulkResolverBuild

type BulkResolverBuild struct {
	// Objects is a list of objects to generate bulk resolvers for
	Objects []Object
}

BulkResolverBuild is a struct to hold the objects for the bulk resolver

type Object

type Object struct {
	// Name of the object
	Name string
	// PluralName of the object
	PluralName string
}

Object is a struct to hold the object name for the bulk resolver

type Plugin

type Plugin struct{}

Plugin is a gqlgen plugin to generate bulk resolver functions used for mutations

func (*Plugin) GenerateCode

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

GenerateCode generates the bulk resolver code

func (*Plugin) Name

func (m *Plugin) Name() string

Name returns the name of the plugin

Jump to

Keyboard shortcuts

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