graphql-go / graphql

An implementation of GraphQL for Go / Golang
MIT License
9.94k stars 841 forks source link

How to support scalar JSON type? #694

Open koote opened 6 months ago

koote commented 6 months 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 5 months ago

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