Moritz
02/06/2018, 4:40 PMreturn ctx.db.mutation.createGroup(
{
data: {
participants:{
connect: {
ids: participants
}
}
},
},
info
)
Herein, participants is an array containing the user ids I would like to add. However, using connect produces an error when passing an array interpreting the input as a single id. Would connectMany do the trick? tried that but also got errors.