Skip to content

Commit

Permalink
Add disclaimer regarding usage of direct foreign key values (#5683)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Harrell <[email protected]>
  • Loading branch information
igorrocha and jharrell authored Sep 17, 2024
1 parent 288b37b commit 405bf33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/200-orm/500-reference/050-prisma-client-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3062,6 +3062,8 @@ const user = await prisma.profile.create({
})
```

However, you can't use both the direct approach and the `connect` approach in the same query. See [this issue comment](https://github.com/prisma/prisma/issues/4322#issuecomment-737976117) for details.

##### Create a new `Post` record and connect it to an existing `User` record

```ts
Expand Down

0 comments on commit 405bf33

Please sign in to comment.