when creating users, I want to give them a `role`....
# prisma-whats-new
f
when creating users, I want to give them a
role
. so I have an enum:
Copy code
enum UserRole {
  ADMIN
  USER
}
and a signup function that has a
role
argument. however, I am encountering this message:
"Schema Extension Error for function 'signup': Relations are currently not supported. Field 'role'"
will this be supported (soon)? + what's the workaround in the meantime? creating the user without a role first, and then doing another mutation?
m
Correct. Do it in two stages.
f
thx
a
Or pass it into your resolver function as a string