Returning a uint
in a Resolve function for a GraphQLNonNull(GraphQLInt)
field responds with 0
#22
Labels
uint
in a Resolve function for a GraphQLNonNull(GraphQLInt)
field responds with 0
#22
I have a simple test server set up to run off todos in a database. I'm using the gorm ORM and it's default
gorm.Model
that defines common fields for models. One of which happens to be theID
field which is of typeuint
.When I make a query to this, I get back
"id": 0
for all records. If I change the return toint(todo.ID)
then I get back the expected ID value.It appears the reason is that
coerceInt
does not support theuint
type. Also missing areint8
,int16
,int32
,int64
, and the uint series as well. When I get the opportunity I'll see about making a pull request to address this.The text was updated successfully, but these errors were encountered: