Hi guys, can someone tell me how to use @relation ...
# orm-help
f
Hi guys, can someone tell me how to use @relation for an array of id? I get an error
Key columns "ownersIds" and "id" are of incompatible types: integer[] and integer.
l
Hi, i feel like in this case you have to use a relation many-to-many. You have to create another model used to save the relation between User and Group. Here the official documentation to build this kind of relation. https://www.prisma.io/docs/concepts/components/prisma-schema/relations/many-to-many-relations
👍 1