This will automatically use CUID2 for all id
fields when creating elements in Prisma.
You'll need to add the following libraries to make this work
npm install --save @paralleldrive/cuid2 immer
yarn add @paralleldrive/cuid2 immer
pnpm add @paralleldrive/cuid2 immer
Immer is use to ensure that there are no side-effects when modifying the arguments.
Thank you for this. Great work!