property PrismaCompositeKeyOptions.compositeKeyName
Since 0.2.0

Override for the derived compound-key field name.

Prisma generates an unnamed @@id([a, b]) as a_b; a named @@id([...], name: "custom") generates only custom. When the derived name does not match the schema (e.g. a named @@id), set this to the Prisma-side generated field name so findById/update/delete emit the correct compound-key where argument.

Type

string

Usage

import { type PrismaCompositeKeyOptions } from "database-plugin/src/index.ts";