Skip to content

Commit

Permalink
move visual
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk committed Jul 3, 2024
1 parent 28942a1 commit da9b069
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,7 @@ const user = await prisma.user.findFirst({
</cmdResult>
</CodeWithResult>

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)

### Select specific fields of included relations

Expand Down Expand Up @@ -640,6 +638,10 @@ const result = await prisma.user.create({
</cmdResult>
</CodeWithResult>

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:
Expand Down

0 comments on commit da9b069

Please sign in to comment.