Version: 2.7
Schema generator
To generate schema from your entity metadata, you can use SchemaGenerator
helper. You will need to create simple script where you initialize MikroORM
like this:
./create-schema.ts
Then run this script via ts-node
(or compile it to plain JS and use node
):