You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From a quick look over your code I noticed that your custom scalar is not defined as in the docs. I'm pretty sure that's the reason Strawberry does not pick up your scalar and never calls your serialize method.
Describe the Bug
I have the following code:
This code throws an assertion error because running
execute_sync
results in an error like the following:This happens because
NullableString.serialize
is not called and therefore doesn't handle theNone
value.Why is the
NullableString.serialize
not called and how can this code be fixed to handle nullable fields?System Information
Operating system:
ProductName: macOS
ProductVersion: 13.5.2
BuildVersion: 22G91
Strawberry version (if applicable): 0.192.0
Upvote & Fund
The text was updated successfully, but these errors were encountered: