Expand description
entity-graph generate โ reads a schema JSON file (SDL IR) and emits
TypeScript entity type definitions + a transport-registration stub.
Structsยง
- Entity
Ctx ๐ - Per-entity data passed into Tera templates.
- Field
Ctx ๐ - Per-field data passed into Tera templates.
- Generate
Args - Arguments for the
generatesubcommand (parsed byclapin main). - Relation
Ctx ๐ - Per-relation data passed into Tera templates.
Enumsยง
- Target
- Code-generation targets.
Functionsยง
- build_
entity_ ๐ctx - build_
tera_ ๐ctx - Build the shared Tera context for all templates.
- generate_
react ๐ - render ๐
- Render a Tera template string and return the output.
- run
- Execute the
generatesubcommand.