Skip to content

Commit

Permalink
entgql: add missing directive's argument (ent#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm authored and skeletal committed May 9, 2024
1 parent 2a81b09 commit 5585216
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions entgql/internal/todo/ent.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
directive @goField(forceResolver: Boolean, name: String) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
directive @goModel(model: String, models: [String!]) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
directive @goField(forceResolver: Boolean, name: String, omittable: Boolean) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
directive @goModel(model: String, models: [String!], forceGenerate: Boolean) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
type BillProduct implements Node {
id: ID!
name: String!
Expand Down
4 changes: 2 additions & 2 deletions entgql/internal/todogotype/generated.go

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

4 changes: 2 additions & 2 deletions entgql/internal/todopulid/generated.go

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

4 changes: 2 additions & 2 deletions entgql/internal/todouuid/generated.go

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

8 changes: 8 additions & 0 deletions entgql/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ var (
Name: "models",
Type: ast.ListType(ast.NonNullNamedType("String", nil), nil),
},
{
Name: "forceGenerate",
Type: ast.NamedType("Boolean", nil),
},
},
Locations: []ast.DirectiveLocation{
ast.LocationObject,
Expand All @@ -82,6 +86,10 @@ var (
Name: "name",
Type: ast.NamedType("String", nil),
},
{
Name: "omittable",
Type: ast.NamedType("Boolean", nil),
},
},
Locations: []ast.DirectiveLocation{
ast.LocationFieldDefinition,
Expand Down

0 comments on commit 5585216

Please sign in to comment.