Skip to content

Commit

Permalink
match Int scalar type with int and int64
Browse files Browse the repository at this point in the history
graphql doesn't support int64 data type
(graphql/graphql-spec#73)
  • Loading branch information
agungdwiprasetyo committed Jul 23, 2020
1 parent bf95a2c commit ce0f021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/exec/resolvable/resolvable.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (b *execBuilder) makeExec(t common.Type, resolverType reflect.Type) (Resolv
func makeScalarExec(t *schema.Scalar, resolverType reflect.Type) (Resolvable, error) {
implementsType := false
switch r := reflect.New(resolverType).Interface().(type) {
case *int32:
case *int32, *int, *int64:
implementsType = t.Name == "Int"
case *float64:
implementsType = t.Name == "Float"
Expand Down

0 comments on commit ce0f021

Please sign in to comment.