is there any way to make something like this in sc...
# orm-help
g
is there any way to make something like this in schema:
Copy code
type ActionMember {
  id: ID! @unique
  person: Person! || User!
  side: String!
}
Something like OR operation
Copy code
union PersonOrUser = Person | User

type ActionMember {
  id: ID! @unique
  person: PersonOrUser!
  side: String!
}
g
@cmcinroy hmmm, i will try it, thanks 🙂
@cmcinroy nope, it doesn't work in prisma 😞 ActionMember ✖️ The field
member
has the type
PersonOrUser
but there's no type or enum declaration with that name.
c
perhaps an
Interface
then?.... which both Person and User implement?