Skip to content

Commit

Permalink
Update README.mdx (epicweb-dev#16)
Browse files Browse the repository at this point in the history
This section was about using the `$connect` method but the code example did not show this
  • Loading branch information
dg1234uk authored Oct 27, 2023
1 parent 3394c19 commit 5abef41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exercises/06.querying/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ import { singleton } from '#app/utils/singleton.server.ts'

export const prisma = singleton('prisma', () => {
const client = new PrismaClient()
client.$connect();
return client
})
```
Expand Down

0 comments on commit 5abef41

Please sign in to comment.