Skip to content

Commit

Permalink
add snippet installing ws types
Browse files Browse the repository at this point in the history
  • Loading branch information
ruheni authored Nov 7, 2023
1 parent 1c58baf commit acb9307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/300-guides/050-database/890-neon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Install the Prisma adapter for Neon, Neon serverless driver and `ws` packages:

```sh
npm install @prisma/adapter-neon @neondatabase/serverless ws
npm install --save-dev @types/ws
```

Update your Prisma Client instance:
Expand All @@ -171,4 +172,4 @@ const adapter = new PrismaNeon(pool)
const prisma = new PrismaClient({ adapter })
```

You can then use Prisma Client as you normally would with full-type-safety. Prisma Migrate, introspection, and Prisma Studio will continue working as before, using the connection string defined in the Prisma schema.
You can then use Prisma Client as you normally would with full type-safety. Prisma Migrate, introspection, and Prisma Studio will continue working as before, using the connection string defined in the Prisma schema.

0 comments on commit acb9307

Please sign in to comment.