Getting started
If you would like just have a quick peak at a working project how a look at our playground
folder on GitHub.
1. Setup Prisma project
Install the following node modules dependencies. See Prisma quick start guide. If you already have a Prisma project you can go ahead and simply install prisma-extension-bark
only and skip to the next step.
Run Prisma initialization command. (This will create new a folder named prisma
with a prisma.schema
file.)
2. Implement the required field on your model
In your schema.prisma
file create a node
model with the minimum required fields for Bark to work and the field you would like to have on this model. For more information on the model refer to Model Reference documentation.
3. Create migration
Run the following command to create a new database migration. For more information on this Prisma CLI command see Prisma documentation.
4. Extend Prisma Client with Bark
Nearly there! Create a new .js/.ts file and extend your Prisma client. Learn about Prisma Client extensions.
Have a look at our Client Extension API documentation to discover what else you can do with Bark.
Last updated