Replies: 1 comment
-
It seems to work if I add this to my models: models:
String:
model:
- github.com/99designs/gqlgen/graphql.String |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
What happened?
It seems that in the following schema:
If the model role is mapped to:
It will fail to serialize because it assumes that the string is a pointer (
res := resTmp.(*string)
):What did you expect?
I expected to be able to return
string
and it works or something in the doc to explain how I should make it work.Minimal graphql.schema and models to reproduce
See above
versions
gqlgen version 0.13.0
go version 1.15
Beta Was this translation helpful? Give feedback.
All reactions