compiler

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaCompiler

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

SchemaCompiler compiles multiple .graphql files into a single schema

func NewSchemaCompiler

func NewSchemaCompiler(sourceDir, outputFile string) *SchemaCompiler

NewSchemaCompiler creates a new schema compiler

func (*SchemaCompiler) Compile

func (c *SchemaCompiler) Compile() error

Compile finds all .graphql files and concatenates them into a single schema

func (*SchemaCompiler) CompileIfNeeded

func (c *SchemaCompiler) CompileIfNeeded() (bool, error)

CompileIfNeeded compiles the schema only if source files are newer than output

Jump to

Keyboard shortcuts

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