Open Bysmyyr opened 4 years ago
Thanks! I would be grateful if you could give me the code for that problem!
For this problem, I think we can simply create our own model, like this. In this case, I'm using Hasura, where the JSON result scalar name is jsonb
.
# in .gqlgenc.yml
models:
jsonb:
model: github.com/yourproject/model.JSONB
Where in our code, we define something like this.
# in github.com/yourproject/model
package model
type JSONB interface{}
type: JSONObject is mapped to *string but it should be map[string]interface{}
but even with that fix I did not get it working...