graphql-go / graphql

An implementation of GraphQL for Go / Golang
MIT License
9.82k stars 836 forks source link

How to support scalar JSON type? #694

Open koote opened 1 month ago

koote commented 1 month ago

The response is a JSON type which cannot be represented in string, like https://the-guild.dev/graphql/scalars/docs/scalars/json, how to support it? thanks.

yoursunny commented 2 weeks ago

You can use github.com/bhoriuchi/graphql-go-tools/scalars package, ScalarJSON variable.