Pkmmte
02/06/2019, 12:55 AMcreate mutations inside an update mutation are absolute or cumulative?
For example:
If I update a Menu to create more `Product`s, like so:
mutation {
updateMenu(where: {id: $id}, data: {
products: {
create: [
{}, ...
]
}
}) {
id
}
}
... does this replace the products it already had or does it add them to the existing list?carlo
02/06/2019, 5:31 AMcarlo
02/06/2019, 5:32 AMcarlo
02/06/2019, 5:33 AMset would replace the items but it is currently not supported in prisma client yet https://github.com/prisma/prisma/issues/3921