Skip to content

Commit

Permalink
entgql: fixed zero value on first/last when receive null input (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm authored Sep 7, 2024
1 parent de4ec7a commit 316dcd5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion entgql/internal/todo/ent/gql_collection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion entgql/internal/todofed/ent/gql_collection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion entgql/internal/todogotype/ent/gql_collection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion entgql/internal/todopulid/ent/gql_collection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion entgql/internal/todouuid/ent/gql_collection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion entgql/template/collection.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func fieldArgs(ctx context.Context, whereInput any, path ...string) map[string]a
func unmarshalArgs(ctx context.Context, whereInput any, args map[string]any) map[string]any {
for _, k := range []string{firstField, lastField} {
v, ok := args[k]
if !ok {
if !ok || v == nil {
continue
}
i, err := graphql.UnmarshalInt(v)
Expand Down

0 comments on commit 316dcd5

Please sign in to comment.