Nx Tools
APIExecutorsvalidate

validate

Validates the Prisma schema file for syntax and semantic errors.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.

Info

This command helps ensure your Prisma schema is valid before generating the client or applying migrations.

Examples

apps/your-app/project.json
"prisma-validate": {
  "executor": "@nx-tools/nx-prisma:validate",
}

You may want to use a custom schema file:

apps/your-app/project.json
"prisma-validate": {
  "executor": "@nx-tools/nx-prisma:validate",
  "options": {
    "schema": "custom-file.prisma",
  }
}

Options:

Prop

Type

Last updated on

On this page