Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.43 KB

README_starter.md

File metadata and controls

49 lines (31 loc) · 1.43 KB

Prisma Client Extension starter repository

Use this template to bootstrap creating your Prisma Client extension.

Client extensions provide a powerful way to add functionality to Prisma Client in a type-safe manner. You can use them to create simple and flexible solutions that are not natively supported by Prisma.

If you would like to learn more, refer to the Prisma docs to learn more information.

Get started

Click the Use this template button and provide details for your Client extension

Install the dependencies:

npm install

Build the extension:

npm run build

Set up the example app:

cd example
npm install
npx prisma db push

Test the extension in the example app:

npm run dev

Evolve the extension

The code for the extension is located in the index.ts file. Feel free to update it before publishing your Client extension to npm.

Learn more