Hi guys, I need assistance in one aspect of Prisma that I can't see to crack.
I have a model with two types defined as follows:
type User {
id: @ID
email: String!
password: String!
bio: Bio!
contacts: [Contact!]!
}
type Contact {
id: @ID
bio: Bio!
}
Each user can have MANY contacts and each contact can belong to MANY users.
When inserting contacts for users, how can I verify that I am not creating duplicate relationships? In other words, check for existence of many to many relationships