scaffolding

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphqlField

func GraphqlField(field fieldDef, mustBeOptional bool) string

func GraphqlFields

func GraphqlFields(
	fields []fieldDef,
	skipReadOnly bool,
) []fieldDef

func ParseModel

func ParseModel(filePath string) *visitor

func Process

func Process(rootPath, filePath string)

Types

type Data

type Data struct {
	ModuleName string
	PkgName    string
	Name       string
	NamePlural string
	Fields     []fieldDef
}

type Scaffold

type Scaffold struct {
	Gen *generators.Generator[*Data]
}

func (*Scaffold) AddGraphqlMutations

func (g *Scaffold) AddGraphqlMutations()

func (*Scaffold) AddGraphqlQueries

func (g *Scaffold) AddGraphqlQueries()

func (*Scaffold) CreateFactory

func (g *Scaffold) CreateFactory()

func (*Scaffold) CreateIntegrationTest

func (g *Scaffold) CreateIntegrationTest()

func (*Scaffold) CreatePkg

func (s *Scaffold) CreatePkg()

func (*Scaffold) CreateResolver

func (g *Scaffold) CreateResolver()

Jump to

Keyboard shortcuts

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