I'm setting up permissions for user on a CRUD app, I want to give myself the permission of ADMIN
but I can't seem to do it. I have set up my data type for a user
as follows:
datamodel.graphql
:
type User {
id: ID! @unique
name: String!
email: String! @unique
password: String!
resetToken: String
resetTokenExpiry: String
permissions: [Permission]
}
schema.graphql
:
type User {
id: ID!
name: String!
email: String!
permissions: [Permission!]!
}
When using my Prisma console, I can fill out all the fields except for permissions
.
And when trying to update an existing user's permissions, I can't seem to type anything in that field to update it. Is my schema wrong?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.