Hi,
I have this data in my db:
"branch": [
{
"versions": [
{
"wayOfCreation": "New_Branch",
"code": "1.0",
"orkId": "0x13882-master-1.0"
},
{
"wayOfCreation": "New_Version",
"code": "1.1",
"orkId": "0x13882-master-1.1"
}
]
}
]
I try to update the data using deep update with the following mutation:
mutation MyMutation {
updateBranch(input: {filter: {orkId: {eq: "0x13882-master"}}, set: {versions: [{orkId: "0x13882-master-1.0", code: "1.2"}, {orkId: "0x13882-master-1.1", wayOfCreation: Publish}]}}) {
branch {
versions {
wayOfCreation
code
orkId
}
}
}
}
but the result is:
{
"data": {
"updateBranch": {
"branch": [
{
"versions": [
{
"wayOfCreation": "New_Branch",
"code": "1.0",
"orkId": "0x13882-master-1.0"
},
{
"wayOfCreation": "New_Version",
"code": "1.1",
"orkId": "0x13882-master-1.1"
}
]
}
]
}
},
Nothing was changed
I tried to follow the example in the docs about the deep update