-
-
Notifications
You must be signed in to change notification settings - Fork 598
Open
Labels
Description
Reason why:
newBehavior.push(`-attribute:insert`); |
Summary
Required/non-nullable field is removed from create due to being part of relation
Steps to reproduce
Use relay plugin with a table that has a NOT NULL field which also has a relation on it
Expected results
It's part of the create mutation
Actual results
It's not
Additional context
Possible Solution
I think we can just remove the highlighted line? Or will it have unintended consequences
I can make the PR if so
for example i have Trips(id, userid, name, description) and userid was not part of the create. I tried using it and it resulted in a constraint error. When i removed the line i marked above, i got a graphql error as expected that this field was required.