Skip to content

Commit bdf25ae

Browse files
match Int scalar type with int and int64
graphql doesn't support int64 data type (graphql/graphql-spec#73)
1 parent c9e4790 commit bdf25ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/exec/resolvable/resolvable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func (b *execBuilder) makeExec(t common.Type, resolverType reflect.Type) (Resolv
224224
func makeScalarExec(t *schema.Scalar, resolverType reflect.Type) (Resolvable, error) {
225225
implementsType := false
226226
switch r := reflect.New(resolverType).Interface().(type) {
227-
case *int32:
227+
case *int32, *int, *int64:
228228
implementsType = t.Name == "Int"
229229
case *float64:
230230
implementsType = t.Name == "Float"

0 commit comments

Comments
 (0)