From 4862b51033942eedcd7ae3e2f0e06c97aae63ade Mon Sep 17 00:00:00 2001 From: Igor Rocha Date: Tue, 27 Feb 2024 15:34:20 -0300 Subject: [PATCH] add disclaimer regarding usage of direct foreign key values --- content/200-orm/500-reference/050-prisma-client-reference.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/200-orm/500-reference/050-prisma-client-reference.mdx b/content/200-orm/500-reference/050-prisma-client-reference.mdx index 2d696844db..05ac717a7f 100644 --- a/content/200-orm/500-reference/050-prisma-client-reference.mdx +++ b/content/200-orm/500-reference/050-prisma-client-reference.mdx @@ -2875,6 +2875,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