diff --git a/content/200-orm/200-prisma-client/100-queries/037-relation-queries.mdx b/content/200-orm/200-prisma-client/100-queries/037-relation-queries.mdx index 6e69d71ce8..5d62ff72c0 100644 --- a/content/200-orm/200-prisma-client/100-queries/037-relation-queries.mdx +++ b/content/200-orm/200-prisma-client/100-queries/037-relation-queries.mdx @@ -241,6 +241,8 @@ const user = await prisma.user.findFirst({ + + ### Select specific fields of included relations You can use a nested `select` to choose a subset of fields of relations to return. For example, the following query returns the user's `name` and the `title` of each related post: @@ -636,6 +638,10 @@ const result = await prisma.user.create({ +Here's a visual representation of how a nested create operation can write to several tables in the database as once: + +![](/img/orm/nested-create.png) + #### Using nested `createMany` The following query uses a nested [`createMany`](/orm/reference/prisma-client-reference#create-1) to create: diff --git a/static/img/orm/nested-create.png b/static/img/orm/nested-create.png new file mode 100644 index 0000000000..42ede64602 Binary files /dev/null and b/static/img/orm/nested-create.png differ