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.
Click to show internal directories.
Click to hide internal directories.