Skip to main content
Version: Current

TypeORM model generation

TypeORM entities can be automatically generated from the schema file defined in schema.graphql. The tool is called squid-typeorm-codegen(1) and has no additonal options.

Install with

npm i @subsquid/typeorm-codegen --save-dev

If codegen CLI alias is defined in the commands.json file in the project root, run:

sqd codegen

Alternatively, run:

npx squid-typeorm-codegen