Skip to content

Commit

Permalink
replace order in cases between float and numeric (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
yonidavidson authored Aug 12, 2021
1 parent 478c3f3 commit b3339fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entgql/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ func (e *Extension) mapScalar(f *gen.Field, op gen.Op) string {
scalar = graphql.Boolean.Name()
case f.IsEdgeField():
scalar = graphql.ID.Name()
case t.Numeric():
scalar = graphql.Int.Name()
case t.Float():
scalar = graphql.Float.Name()
case t.Numeric():
scalar = graphql.Int.Name()
case t == field.TypeString:
scalar = graphql.String.Name()
case strings.ContainsRune(scalar, '.'): // Time, Enum or Other.
Expand Down

0 comments on commit b3339fb

Please sign in to comment.