This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
Nested writes don't work on 3rd level with required relation #275
Labels
Milestone
Comments
pantharshit00
added
bug/2-confirmed
We have confirmed that this is a bug.
kind/bug
A reported bug.
labels
Oct 31, 2019
I can confirm this. Here is a reproduction for internal use: https://github.com/harshit-test-org/prisma-photonjs-275 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is not reproducible on the engine level, I can write a GraphQL mutation directly against the query engine that allows for creating item types. |
To elaborate:
mutation {
createOneRoom(data:{
name: "SomeRoom"
meetingRoom: true
items: {
create:{
name: "SomeItem"
type:{
create:{
name: "SomeType"
}
}
}
}
}) {
id
}
} |
I adapted the reproduction above to alpha 917:
This leads to these suggestions: Is this the expected behavior @nikolasburk and this bug can be closed? |
Looks good to me, thanks a lot 🙏 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
I have these models:
I now want to create a new
Room
with newItem
s which all need anItemType
. However, the nested write arguments are not available for thetype
field on createdItem
s:The text was updated successfully, but these errors were encountered: