I have a record saved in dynamodb:
{
...
st: {
fs: {
se: true
}
}
}
when I run the command to update st->fs->se
in this record,
aws dynamodb update-item --table-name tableName --key '...' --update-expression 'SET #st.#fs.#se= :c' --expression-attribute-values '{":c": {"BOOL": false}}' --expression-attribute-values '{":c": {"BOOL": false}}' --expression-attribute-names '{"#st": "st", "#fs":"fs", "#se": "se" }'
I got error:
An error occurred (ValidationException) when calling the UpdateItem operation: The document path provided in the update expression is invalid for update
How can I update the nested field?