Skip to main content

Module generate

Module generate 

Source
Expand description

Code generation targets for client artifacts.

Generates typed SDK clients, framework-specific hooks, and mock handlers directly from the CompiledSchema IR.

Modules§

mcp
MCP target – Model Context Protocol server.
msw
MSW target — mock handlers and data factories.
python
Python model generation.
react_query
React Query target — per-operation hooks and provider.
rust
Rust model generation.
sdk
SDK target — vanilla typed GraphQL client.
typescript
TypeScript model generation.
util
Shared utilities for code generation targets.

Enums§

Target
Available generation targets.

Functions§

check_support
Reject a schema a requested target cannot yet emit correctly, before any code is generated.
generate
Generate client artifacts for the requested targets.