How create mutation relations many to many


#1

How generate a mutation with this relation

type Talent @pgTable(name: “talents”) {
id: UUID! @unique
name: String!
events: [Event] @pgRelation(name: “talentsxevent”)
}

type Event @pgTable(name: “events”) {
id: UUID! @unique
place: String
dailybudget: String
activities: String
city: String
talents: [Talent] @pgRelation(name: “talentsxevent”)
}


#2

Hi @carl.mateuss

What kind of mutation are you asking for(create, update, upsert)? Can you please elaborate?


#4

I do not speak English well, excuse me. What I need is to generate a mutation that allows me to create or update a relationship from many to many, I would greatly appreciate it. Thank you so much


#5

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.