Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Scaffold the project:
npx prisma-next init --yes --target mongodb --authoring psl
```

`init` writes a `prisma-next.config.ts` at the repo root. MongoDB is selected by importing the `@prisma-next/mongo` façade, not by a `provider` string in the schema. Point the connection at the **same database** your v6 app uses.
`init` writes a `prisma-next.config.ts` at the repo root. MongoDB is selected by importing the `@prisma-next/mongo` facade, not by a `provider` string in the schema. Point the connection at the **same database** your v6 app uses.
Comment thread
coderabbitai[bot] marked this conversation as resolved.

```typescript tab="After"
// prisma-next.config.ts
Expand Down Expand Up @@ -73,7 +73,7 @@ Run `npx prisma-next contract emit` to generate `contract.json` from your `.pris

### Import the client

The way to instantiate the Prisma client now is from the emitted contract:
The way to instantiate the Prisma client now is from the emitted contract. Replace `my-app-db` with the database name your v6 connection string uses; if the connection URL already carries the database name in its path, omit `dbName` and the client reads it from the URL:

```typescript tab="After"
// src/prisma/db.ts
Expand Down
1 change: 1 addition & 0 deletions apps/docs/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"Ctype",
"cursorrules",
"cursorstream",
"cutover",
"datadog",
"datamodel",
"DATAPROXY",
Expand Down
Loading