Skip to content

Commit e03f386

Browse files
authored
entgql: add missing directive's argument (#567)
1 parent eff33e4 commit e03f386

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

entgql/internal/todo/ent.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
directive @goField(forceResolver: Boolean, name: String) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
2-
directive @goModel(model: String, models: [String!]) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
1+
directive @goField(forceResolver: Boolean, name: String, omittable: Boolean) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
2+
directive @goModel(model: String, models: [String!], forceGenerate: Boolean) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
33
type BillProduct implements Node {
44
id: ID!
55
name: String!

entgql/internal/todogotype/generated.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

entgql/internal/todopulid/generated.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

entgql/internal/todouuid/generated.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

entgql/schema.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ var (
6060
Name: "models",
6161
Type: ast.ListType(ast.NonNullNamedType("String", nil), nil),
6262
},
63+
{
64+
Name: "forceGenerate",
65+
Type: ast.NamedType("Boolean", nil),
66+
},
6367
},
6468
Locations: []ast.DirectiveLocation{
6569
ast.LocationObject,
@@ -82,6 +86,10 @@ var (
8286
Name: "name",
8387
Type: ast.NamedType("String", nil),
8488
},
89+
{
90+
Name: "omittable",
91+
Type: ast.NamedType("Boolean", nil),
92+
},
8593
},
8694
Locations: []ast.DirectiveLocation{
8795
ast.LocationFieldDefinition,

0 commit comments

Comments
 (0)