Skip to content

Commit

Permalink
Update index.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk committed May 17, 2024
1 parent e38ec84 commit 8294b7e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ When you define two relations between the same two models, you need to add the `
<TabbedContent code>
<TabItem value="Relational databases">

```prisma no-copy
```prisma highlight=6,7,13,15;normal no-copy
// NOTE: This schema is intentionally incorrect. See below for a working solution.
model User {
Expand All @@ -510,7 +510,7 @@ model Post {
</TabItem>
<TabItem value="MongoDB">

```prisma no-copy
```prisma highlight=6,7,13,15;normal no-copy
// NOTE: This schema is intentionally incorrect. See below for a working solution.
model User {
Expand Down Expand Up @@ -545,7 +545,7 @@ To disambiguate these relations, you need to annotate the relation fields with t
<TabbedContent code>
<TabItem value="Relational databases">

```prisma
```prisma highlight=4,5,11,13;normal
model User {
id Int @id @default(autoincrement())
name String?
Expand All @@ -566,7 +566,7 @@ model Post {
</TabItem>
<TabItem value="MongoDB">

```prisma
```prisma highlight=4,5,11,13;normal
model User {
id String @id @default(auto()) @map("_id") @db.ObjectId
name String?
Expand All @@ -586,4 +586,4 @@ model Post {

</TabItem>
</TabbedContent>


0 comments on commit 8294b7e

Please sign in to comment.