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
{{ message }}
Repository navigation
Zenith: fix Go struct field json serialization #5860
The graphql schema for Foo will be populated with a field called Bar, but when we do json serialization we use blahblah, which means that if you try to query for the value of the Bar field, our gql server hits the trivial resolver codepath and looks for bar in the json object and doesn't find it (since it's been serialized to blahblah).
My first thought was that if a json struct tag is present, we should use that as the graphql field name rather than the go name. That would fix this problem I think, but it's more debatable whether it's surprising behavior (or honestly if anyone will really care about this).
Activity