fix(packages): Adds GraphQLNonNull to the modelType for ResultList.items#2294
fix(packages): Adds GraphQLNonNull to the modelType for ResultList.items#2294CoreyKovalik wants to merge 1 commit intoaerogear:masterfrom
GraphQLNonNull to the modelType for ResultList.items#2294Conversation
|
ran |
|
Fully agree |
|
I tend to agree also - this would mean deviating from the GraphQL CRUD spec somewhat. Should we also propose it gets updated with this? |
|
I think that this was more ommision on our side. https://graphql-rules.com/rules/output-non-null Sad part is we need to break graphback for this change and make tons of updates in graphqlcrud. doc etc. |
This is undoubtedly an improvement. However, you're infinitely more familiar with the codebase. Maybe this PR has opened a can of worms that is worth kicking down the road if it's going to cause a breaking change for the next release |
This makes our DX better. As a developer, we shouldn't have to assert that MyType is not null, because it never happens.
itemsis never[MyType1, MyType2, null, null, MyType3]or[null, null, null, ...N]before:
after:
Types of changes
What types of changes does your code introduce to Graphback?
Checklist