Is there a guide to creating a mutation where you ...
# prisma-whats-new
g
Is there a guide to creating a mutation where you are setting a field that contains a one to many relation?
I’m trying to do something like
Copy code
mutation updateStrategicObjective($id: ID!, $name:String!, $description: String!, $experts: [ID!]) {
  updateStrategicObjective(id: $id, name: $name, description: $description, experts: $experts){
    id
    name
    description
  }
}
where experts is a list of IDs
I found that the type for $experts should be StrategicObjectiveexpertsExpert
but it expects the complete object. Is there a way to make it expect a list of IDs, instead of a list of objects?
The argument in your case is called
expertIds
@gmuresan did you have luck with that?
g
yes I figured it out I needed expertIds
🙌 1