-
-
Notifications
You must be signed in to change notification settings - Fork 782
Strawberry Shake: fails to map properties from GraphQL response to .NET result object, resulting in .NET null values #5256
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
Comments
Thank you for raising this @ronnieholm . I'm running into the same bug. There seems to be a few conditions required to reproduce it.
It feels like what it's doing is, it's caching the shape of the parent object and deserializing the children into the same shape, ignoring any extra fields present in the children. If we add the extra two fields to be returned with the parent, those values will be included with the children as well. I managed to create a minimal application that reproduces the issue here using HotChcolate and StrawberryShake using StrawberryShake12.14.0. Where,
Hope this helps. Thank you for the wonderful work all ! |
Just a quick update in-case anyone else runs into this. I can still replicate this with Using the |
@YashanFernando Have the same problem. Do you have any update on how to disable the client store on |
@haohanyang No.. Sorry. I had a bit of a dig through the configuration code but I couldn't figure out a way to disable it. I've just been using |
Any update to this? I had this issue in .Net where my generated file is throwing an error at MapEntityNonNullableArray. Banana Cake Pop receives the correct data from the server but the value provided to my client fails to map datetimes on my entity. |
I have the same issues with V15 |
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Describe the bug
In the Apollo Server sandbox environment, when I run the following query:
the output is:
Running the same query with StrawberryShake, in the result
scopeVariants
has become a two elements list, but withscope
andname
properties being null.I've verified that StrawberryShake is indeed getting
scope
andname
back from the GraphQL server. Placing a breakpoint in the generated code:response
has the following value:But for some reason, the values of
scope
andname
aren't mapped onto the result.Am I missing a setting somewhere or is this a bug with Strawberry?
I do wonder, though, why the Strawberry result has a different shape than that returned by Apollo Server sandbox environment.
Steps to reproduce
Relevant log output
Additional Context?
No response
Product
Strawberry Shake
Version
12.11.1
The text was updated successfully, but these errors were encountered: