Nx Tools
APIGeneratorsconfiguration

configuration

Configure Prisma for your application.

@nx-tools/nx-prisma:configuration

This generator is used for setup a existing app to use nx-prisma.

It will create a prisma.schema file at the root of your project.

It will also add several prisma-* related targets to the project.json file of your project.

Your code will be modified!

This generator will modify your code, so make sure to commit your changes before running it.

Usage

nx g @nx-tools/nx-prisma:configuration

When running this generator, you will be prompted to provide the following:

  • The project, as the name of the project you want to generate the configuration for.
  • The database, as the type of database you want to use (e.g., PostgreSQL, MySQL, SQLite).

Options:

Prop

Type

Last updated on

On this page