Skip to content

Commit

Permalink
Merge pull request #115 from fotoflo/patch-1
Browse files Browse the repository at this point in the history
Update Readme to clarify installation procedure
  • Loading branch information
chrishoermann committed Mar 27, 2023
2 parents ad73806 + fc3bc02 commit 8b180c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,17 @@ Just add the following code to your `prisma.schema` file to create a single `ind

```prisma
generator zod {
provider = "zod-prisma-types"
provider = "npx zod-prisma-types"
}
```

Then import the schema's into your file:

```
import { mySchema } from "/prisma/generated/zod"; // All schemas are here by default, use the 'output' option to change it
```


If you want to customize the behaviour of the generator you can use the following options:

```prisma
Expand Down

0 comments on commit 8b180c0

Please sign in to comment.