Given Prisma schema:
model companiesOnUsers {
company company @relation(fields: [companyId], references: [id])
companyId Int
user user @relation(fields: [userId], references: [id])
userId Int
role companyRoles @relation(fields: [roleId], references: [id])
roleId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@id([companyId, userId])
}
The question is, how do you generate GraphQL out of it? Writing this twice is not an option.