I've now tried with insertAtRow as well, and now I'm getting Error: You are not authorised to edit primary keys. mutation CreateFormElement($customerNo: Int!, $create: FormElement_Insert_Input!, $insertAtRow: FilterExpression_FormElement, $insertPosition: InsertPosition) {
useCustomer(no: $customerNo) {
formElement_create(
values: [$create]
insertAtRow: $insertAtRow
insertPosition: $insertPosition
) {
affectedRows
}
}
}
{
"customerNo": 1182082,
"insertAtRow": {
"formType": {
"_eq": 6
},
"formNo": {
"_eq": 11
},
"lineNo": {
"_eq": 2
}
},
"insertPosition": "BEFORE",
"create": {
"formType": 6,
"formNo": 11,
"x": 4000,
"y": 1500,
"dx": 7500,
"dy": 500,
"textOrParameters": "New Element",
"justification": 1,
"elementType": 1,
"fontSize": 10
}
}
... View more