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#
| Type | Definition | Description |
|---|---|---|
Parts | type Parts = tuple[str, ...] | Literal text at even indices and names to rename at odd indices. |