@nilan,
How can pass enum value in default for a model field
enum AthleteStatus {
APPROVED
MANAGER_PENDING
}
type Athlete implements Node {
createdAt: DateTime!
createdBy: User @relation(name: "CreatedAthlete")
graduation: String
graduationProgramLength: String
graduationUniversity: String
graduationYear: Int
hightSchool: String
hightSchoolUniversity: String
hightSchoolYear: Int
id: ID! @isUnique
status: AthleteStatus! @defaultValue(value: APPROVED)
updatedAt: DateTime!
user: User! @relation(name: "UserOnAthlete")
}
getting error:
The specified default value 'APPROVED' is not a valid Enum Value for this field (Request ID: cj2sug9wnqt3k0123cszcita4)