I need to make a comparison in a ConditionExpression of the form '(#i.body_uncommon = 1)' without using ExpressionAttributeValues, what should the syntax be? I looked at all the documentation and did not find an example
For example so:
response = table.update_item(
Key={
'ID': "jr_test"
}
, ConditionExpression='(#i.body_uncommon = 1)'
, UpdateExpression=final_str
, ExpressionAttributeNames={
"#i": "items"
}
)
But this code throws a syntax error in the place: token: "1", near: "= 1)"
attribute_typefunction in ConditionExpression Functions.