codegenapi

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultGraphQLMutationName = NounVerb

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	DefaultGraphQLMutationName() GraphQLMutationName
	DefaultGraphQLFieldFormat() GraphQLFieldFormat
	FieldPrivacyEvaluated() FieldPrivacyEvaluated
	GetRootPathToConfigs() string
	GetAbsPathToRoot() string
	Runtime() Runtime
	PostgresDriver() PostgresDriver
	DebugMode() bool
	DebugFilesMode() bool
	// doesn't actually writes the files, just keeps track of which files were going to be written
	// used to detect dangling files...
	DummyWrite() bool
	GetTemplatizedViewer() *ImportedObject
	GetAssocEdgePath() *ImportedObject
	CustomSQLInclude() []string
	CustomSQLExclude() []string
}

this file exists to simplify circular dependencies

type DummyConfig

type DummyConfig struct {
}

DummyConfig exists for tests/legacy paths which need Configs and don't want to create the production one

func (DummyConfig) CustomSQLExclude added in v0.1.6

func (cfg DummyConfig) CustomSQLExclude() []string

func (DummyConfig) CustomSQLInclude added in v0.1.6

func (cfg DummyConfig) CustomSQLInclude() []string

func (*DummyConfig) DebugFilesMode added in v0.1.0

func (cfg *DummyConfig) DebugFilesMode() bool

func (*DummyConfig) DebugMode

func (cfg *DummyConfig) DebugMode() bool

func (*DummyConfig) DefaultGraphQLFieldFormat

func (cfg *DummyConfig) DefaultGraphQLFieldFormat() GraphQLFieldFormat

func (*DummyConfig) DefaultGraphQLMutationName

func (cfg *DummyConfig) DefaultGraphQLMutationName() GraphQLMutationName

func (DummyConfig) DummyWrite added in v0.1.0

func (cfg DummyConfig) DummyWrite() bool

func (DummyConfig) FieldPrivacyEvaluated added in v0.1.0

func (cfg DummyConfig) FieldPrivacyEvaluated() FieldPrivacyEvaluated

func (*DummyConfig) GetAbsPathToRoot added in v0.3.4

func (cfg *DummyConfig) GetAbsPathToRoot() string

func (DummyConfig) GetAssocEdgePath added in v0.1.0

func (cfg DummyConfig) GetAssocEdgePath() *ImportedObject

func (*DummyConfig) GetRootPathToConfigs

func (cfg *DummyConfig) GetRootPathToConfigs() string

func (DummyConfig) GetTemplatizedViewer added in v0.1.0

func (cfg DummyConfig) GetTemplatizedViewer() *ImportedObject

func (*DummyConfig) PostgresDriver added in v0.3.4

func (cfg *DummyConfig) PostgresDriver() PostgresDriver

func (*DummyConfig) Runtime added in v0.3.4

func (cfg *DummyConfig) Runtime() Runtime

type FieldPrivacyEvaluated added in v0.1.0

type FieldPrivacyEvaluated string
const (
	AtEntLoad FieldPrivacyEvaluated = "at_ent_load"
	OnDemand  FieldPrivacyEvaluated = "on_demand"
)

type GraphQLFieldFormat

type GraphQLFieldFormat string
const (
	LowerCamelCase GraphQLFieldFormat = "lowerCamel"

	SnakeCase GraphQLFieldFormat = "snake_case"
)

type GraphQLMutationName

type GraphQLMutationName string
const (
	// e.g. userCreate. default
	NounVerb GraphQLMutationName = "NounVerb"

	// e.g. createUser
	VerbNoun GraphQLMutationName = "VerbNoun"
)

type ImportedObject added in v0.1.0

type ImportedObject struct {
	Path  string `yaml:"path"`
	Name  string `yaml:"name"`
	Alias string `yaml:"alias"`
}

func (*ImportedObject) Clone added in v0.1.0

func (cfg *ImportedObject) Clone() *ImportedObject

func (*ImportedObject) GetImport added in v0.1.0

func (cfg *ImportedObject) GetImport() string

func (*ImportedObject) GetImportPath added in v0.1.0

func (cfg *ImportedObject) GetImportPath() *tsimport.ImportPath

type PostgresDriver added in v0.3.4

type PostgresDriver string
const (
	PostgresDriverPG  PostgresDriver = "pg"
	PostgresDriverBun PostgresDriver = "bun"
)

type Runtime added in v0.3.4

type Runtime string
const (
	RuntimeNode Runtime = "node"
	RuntimeBun  Runtime = "bun"
)

Jump to

Keyboard shortcuts

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