Skip to content

Commit

Permalink
Automatically bind to int32 and int64
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Scarr committed Mar 4, 2019
1 parent f2d9c3f commit fb87dc3
Show file tree
Hide file tree
Showing 9 changed files with 462 additions and 1 deletion.
6 changes: 5 additions & 1 deletion codegen/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,16 @@ func (c *Config) InjectBuiltins(s *ast.Schema) {
"__EnumValue": {Model: StringList{"github.com/99designs/gqlgen/graphql/introspection.EnumValue"}},
"__InputValue": {Model: StringList{"github.com/99designs/gqlgen/graphql/introspection.InputValue"}},
"__Schema": {Model: StringList{"github.com/99designs/gqlgen/graphql/introspection.Schema"}},
"Int": {Model: StringList{"github.com/99designs/gqlgen/graphql.Int"}},
"Float": {Model: StringList{"github.com/99designs/gqlgen/graphql.Float"}},
"String": {Model: StringList{"github.com/99designs/gqlgen/graphql.String"}},
"Boolean": {Model: StringList{"github.com/99designs/gqlgen/graphql.Boolean"}},
"Time": {Model: StringList{"github.com/99designs/gqlgen/graphql.Time"}},
"Map": {Model: StringList{"github.com/99designs/gqlgen/graphql.Map"}},
"Int": {Model: StringList{
"github.com/99designs/gqlgen/graphql.Int",
"github.com/99designs/gqlgen/graphql.Int32",
"github.com/99designs/gqlgen/graphql.Int64",
}},
"ID": {
Model: StringList{
"github.com/99designs/gqlgen/graphql.ID",
Expand Down
Loading

0 comments on commit fb87dc3

Please sign in to comment.