-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Change to supporting of non-null inline arrays #609
fix: Change to supporting of non-null inline arrays #609
Conversation
bc2e1cd
to
2031397
Compare
Codecov Report
@@ Coverage Diff @@
## develop #609 +/- ##
===========================================
+ Coverage 56.41% 56.44% +0.02%
===========================================
Files 121 121
Lines 14317 14326 +9
===========================================
+ Hits 8077 8086 +9
Misses 5542 5542
Partials 698 698
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
While reviewing this, I surfaced a strange bug. I wanted to test what happens if you give it a schema with a nullable field, ie In doing so I got the error: Also saw those same errors in the log about Turns out, that all The tests are passing, because technically both the creation and query respond correctly, but it means internally the structure isn't exactly represented correctly, and it tries to use the relation system for scalar arrays. All this to be able to say:
Both of these options likely means resolving the above issue. which would likely be handled by addressing the difference between types for |
Good catch! I should have tried doing that too when reviewing.
If we plan on supporting |
I'm really not a fan of silently altering the types users explicitly give us
I don't think we need to define this, there are a fair few other gql types that we don't support (such as time) - and that behaviour is undefined as as far as I can tell (we have no tests) |
Vs supporting nullable inline arrays, as we did previously
2031397
to
d54f12c
Compare
Merging, as I see John's comment as a separate issue (and assume John does to - no changes requested?) - I have linked to it from #574 as it might be relevant there. The undefined type issue is separate too, and I don't think we have an issue for it, but I'm not sure it needs one atm (feel very free to create if anyone wants). |
* Skip test if detecting changes * Change to supporting of non-null inline arrays Vs supporting nullable inline arrays, as we did previously
Relevant issue(s)
Resolves #607
Description
Change to supporting of non-null inline arrays vs supporting nullable inline arrays, as we did previously.
To do post merge: