Skip to content
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

Does it support or provides a way to support scalar JSON? #137

Open
koote opened this issue May 30, 2024 · 1 comment
Open

Does it support or provides a way to support scalar JSON? #137

koote opened this issue May 30, 2024 · 1 comment

Comments

@koote
Copy link

koote commented May 30, 2024

Is there a way to extend the support to types like scalar JSON?

@hgiasac
Copy link

hgiasac commented May 30, 2024

https://github.com/hasura/go-graphql-client?tab=readme-ov-file#custom-scalar-tag

Basically, you need to add scalar:"true" tag. The library considers that field as a scalar and decodes it with json.Unmarshal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants