-
|
Hi, I have a JSON type in my schema but autogenerated code fails to convert it throwing My serializer: schema.extensions.graphql Dependency injection: An example of data from server response, marked problematic property: StrawberryShake dependencies are in 12.14.0 version. I ran into many articles, issued bugs, suggestions but nothing is solving the issue, this is so confusing. Any ideas on solution to above? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It's solved now.
This is it and that's it! Cheers |
Beta Was this translation helpful? Give feedback.

It's solved now.
You don't need to implement any additional serializer, it's already there
StrawberryShake.Serialization.JsonSerializer, this thread helped #3543You have to add below to your
schema.extensions.graphqlfileYou have to register in IoC the above serializer with name of your custom scalar
services.AddSerializer(new JsonSerializer("JSON"));This is it and that's it!
I whish I could read the above in documentation 3 days ago, instead of pulling my hair and reverse engineer code ¯_(ツ)_/¯
Cheers
P