Closed pixlcrashr closed 1 year ago
@michaelstaib any news on this?
@michaelstaib Our clients report this issue in the latest official SS 13.7.0 and tell that it seems to be fixed in v14 previews. If v14 is not expected "soon", is there any chance to backport the fix (if this is the case) to some 13.x?
Most of the bug fixes will be back ported. There is already a preview for 13
Thank you @michaelstaib , we look forward to the update of v13.
Hello, Just wanted to check if this fix for deserialization issue when we should expect it to be released because I do have the same situation and upgraded to 13.8.1 and still not fixed on it, so any timeline for it?
Is there an existing issue for this?
Product
Strawberry Shake
Describe the bug
Consider the following query:
Now, if
users
returns the following (valid!) resultStrawberry Shake throws an error that it can not find the
__typename
on thenull
object - which is logically true but does not make any sense. The following .NET exception is thrown:The following is the generated deserialization method for above query:
The line
var typename = obj.Value.GetProperty("__typename").GetString();
is the one that fails, because the inputobj
is ofJsonElement
value kindJsonValueKind.Null
and is not generally a nullable type (JsonElement?
).Generally, this should be easily solvable by modifying the template that generates above function to:
Of course, above example does not handle non-nullable types.
I would appreciate it if you quickly do a hotfix on that.
Steps to reproduce
See above.
Relevant log output
Additional Context?
No response
Version
13.0.5
Tasks ❤️