GitHub

template

API reference for template.

Operation documents split into the pieces needed to rename and alias them without a GraphQL parser (Effect's GraphQL.DocumentTemplate). @effect/graphql-generator emits one per query and mutation.

A body is Parts: literal text at even indices and, at odd indices, the variable and fragment names renamed when the operation is repeated under a prefix. Joining the pieces gives the printed document. A fragment whose body has a name in it is per-slice (it references a variable); every other fragment is shared.

Types

TypeDefinitionDescription
Partstype Parts = tuple[str, ...]

Literal text at even indices and names to rename at odd indices.

Classes