mirror of
https://github.com/ent/ent.git
synced 2026-04-28 13:40:56 +03:00
When run 'go generate ./ent', got error on [create type Todo: invalid default value for enum field "status"] (#2746)
Because todo.graphql on tutorial-todo-gql.md says enum Status is "IN_PROGRESS"
This commit is contained in:
@@ -46,7 +46,7 @@ func (Todo) Fields() []ent.Field {
|
||||
Annotations(
|
||||
entgql.OrderField("STATUS"),
|
||||
).
|
||||
Default("in_progress"),
|
||||
Default("IN_PROGRESS"),
|
||||
field.Int("priority").
|
||||
Default(0),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user