aroman
10/22/2018, 2:02 PMtype User {
id: ID! @unique
email: String @unique
firstName: String!
middleName: String
lastName: String!
password: String!
role: Role!
orders: [Order!]!
}
enum Role {
Admin
Owner
Physician
Patient
Provider
Disabled
}
when I createUser()
I've manually added the Role, and I have tried to also put it as a @default
directive, however, when I call back or fetch on user the Role value is not there thus interfering with my permissions etc. Would any one able to shed some light? I am using prisma 1.17Harshit
10/22/2018, 5:34 PMHarshit
10/22/2018, 5:35 PMHarshit
10/22/2018, 5:38 PMaroman
10/22/2018, 6:12 PMHarshit
10/22/2018, 6:16 PMHarshit
10/22/2018, 6:19 PMaroman
10/22/2018, 6:33 PMaroman
10/22/2018, 6:33 PMaroman
10/22/2018, 6:33 PMHarshit
10/22/2018, 7:59 PMaroman
10/22/2018, 8:48 PMaroman
10/22/2018, 8:48 PM