Gorodov Maksim
06/28/2018, 12:48 PM''?Arnab
06/28/2018, 12:49 PMmutation {
updateEmployee(
data: {
title: ""
}
where: {
title: null
}
) {
id
name
}
}weakky
06/28/2018, 12:50 PMArnab
06/28/2018, 12:52 PM"Argument 'where' expected type 'EmployeeWhereUniqueInput!' but got: {title: null}. Reason: 'title' Field 'title' is not defined in the input type 'EmployeeWhereUniqueInput'. (line 2, column 44):\n updateEmployee(data: {title: \"\"}, where: {title: null}) {\n ^\n (line 2, column 45):\n updateEmployee(data: {title: \"\"}, where: {title: null}) {\nArnab
06/28/2018, 12:54 PMid field, but that seems kinda pointless 😛weakky
06/28/2018, 12:54 PMArnab
06/28/2018, 12:55 PMweakky
06/28/2018, 12:55 PMArnab
06/28/2018, 12:56 PMString! variant, but then prisma let me know that constraints would be violated. Ok fine..I wanted to try the mutation.. and here we are 😛weakky
06/28/2018, 12:56 PMtitle field wasn’t properly deployed to your apinilan
06/28/2018, 12:56 PMtitle a unique property on the Employee type?Arnab
06/28/2018, 12:56 PMnilan
06/28/2018, 12:57 PMwhere selection for single nodes.nilan
06/28/2018, 12:57 PMupdateManyEmployees?Arnab
06/28/2018, 12:58 PMupdateEmployee, I kinda expected it to hit all rows in the table.nilan
06/28/2018, 12:59 PMupdateEmployee updates a single node, selected by a unique argument specified in wherenilan
06/28/2018, 12:59 PMupdateManyEmployee updates an arbitrary number of nodes, selected by arbitrary conditions specified in whereweakky
06/28/2018, 12:59 PMArnab
06/28/2018, 1:02 PMnilan
06/28/2018, 1:03 PMnilan
06/28/2018, 1:04 PM