Skip to main content

@baeta/plugin-prisma

Interfaces

PrismaPluginOptions

Configuration options for the Prisma plugin

Properties

PropertyTypeDefault valueDescription

generatedSchemaPath

string

undefined

Path to the generated schema file for comparison Used to avoid unnecessary regeneration

Example

"node_modules/@prisma/client/schema.prisma";

prismaSchema

string

undefined

Path to the Prisma schema file

Example

"prisma/schema.prisma";

generateClient?

boolean

true;

Whether to generate the Prisma client

generateCommand?

string

"prisma generate";

Custom command to generate Prisma client

Functions

prismaPlugin()

prismaPlugin(options): GeneratorPluginV1<unknown>[]

A plugin that manages Prisma client generation in your Baeta project. See https://baeta.io/docs/plugins/prisma

Parameters

ParameterTypeDescription

options

PrismaPluginOptions

Configuration options for the pagination plugin

Returns

GeneratorPluginV1<unknown>[]

A Baeta generator plugin

References

default

Renames and re-exports prismaPlugin