zCore
❔ Strawberry Shake Prevent Null Serialization (JSON)
1. Write a mutation with optional parameters, which map to optional parameters.
2. Call the muation with null on one parameter
3. The resulting json for the parameters will be
Now in my case the server actually expects this value to be not null and null is representing optional in this case.
Leading the null being serialized to an exception comming from the server complaining.
Is there any way to tell Strawberry Shake to not serialize null?
2 replies