Setting the file. One moment.
Subchapter 1.9
references/format.mdMarkdown1 KBView on GitHub
prisma format [options]fields, references)| Option | Description |
|---|---|
--schema | Path to schema file |
--config | Custom path to your Prisma config file |
prisma formatprisma format --schema=./custom/schema.prismaprisma format modifies the file in place. It is equivalent to “Prettier for Prisma schemas” but also has semantic understanding to fix/add missing schema definitions.
Most Prisma editor extensions (VS Code, WebStorm) run prisma format automatically on save. This command is useful for: