core

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package core ports @graphql-codegen/core's codegen(): it runs a plugin chain over a resolved schema + documents and concatenates the output, hoisting prepend/append blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Codegen

func Codegen(opts *plugin.GenerateOptions) (string, error)

Codegen runs each configured plugin over (schema, documents) and joins the output, mirroring @graphql-codegen/core's codegen(). Returns the combined content for a single output file.

func ValidateDocuments

func ValidateDocuments(schema *ast.Schema, docs []*plugin.DocumentFile) error

ValidateDocuments validates operation documents against the schema, mirroring the core's validateGraphQlDocuments step. IgnoreRules names optional rules to skip (by prefix, matching the JS `specifiedRules.filter(rule => ...)`).

Types

This section is empty.

Jump to

Keyboard shortcuts

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