I'm trying to add @default to an array field, like...
# orm-help
c
I'm trying to add @default to an array field, like this:
Copy code
type User {
  id: ID! @unique
  email: String! @unique
  name: String!
  roles: [UserRole!] @default(value: ["User"])
}

enum UserRole {
  Admin
  User
}
When i create a new user without explicitly defining roles, roles winds up being empty. What is the correct syntax for this?
a