Commit 0fba3fe
[graphql] Add ./mutation-engine subpath export for standalone mutation pipeline usage (#11565)
## Summary
Add a `./mutation-engine` subpath export to `@typespec/graphql` to
enable consumers to use the GraphQL mutation pipeline independently of
the emitter. This allows for other future GraphQL related packages to
use the GraphQL mutation engine to transform the input TSP into GraphQL
compatible shapes in using the same library, reducing duplicate
implementations.
The subpath exports:
- `mutateSchema`, `createGraphQLMutationEngine` — orchestration
- `resolveTypeUsage` — type usage analysis (input vs output)
- `GraphQLTypeContext`, `TypeGraph` — types
- Mutation classes (`GraphQLModelMutation`, etc.)
## Test plan
- [x] Existing tests pass (368 tests)
- [x] Package builds successfully
- [x] Subpath resolves correctly
---------
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>1 parent 3aa5d51 commit 0fba3fe
3 files changed
Lines changed: 13 additions & 0 deletions
File tree
- .chronus/changes
- packages/graphql
- src/mutation-engine
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments