Create nested entities #10333
Labels
kind/feature
A request for a new feature.
team/client
Issue for team Client.
topic: create()
topic: create
nested create
topic: nested write (create/update/delete)
https://www.prisma.io/docs/concepts/components/prisma-client/relation-queries#nested-writes
topic: relations
Problem
Currently it's not possible to create nested entities within a single operation, for example, consider a scenario of seeding a User with a Post and a Comment with children Comments (replies):
Comment model:
Suggested solution
It could be helpful if nested
create
would inherit the parent entity fields/relations instead of manually creating and relating entities.The text was updated successfully, but these errors were encountered: