The DB update automatically appends
# when app runs in production while trying to access the property as follows
I have this in my module localstore in local development :
I then want to remove one of the items of this array, like this :
client.db.update(key, ‘remove’, ‘linkedTasks.MOB-293’)
This works perfectly fine in local development, however, when using this code in production, I get this :
ExpressionAttributeNames contains invalid key: Syntax error; key: \"#MOB-293\""
Where does that “#” come from ?
Did I do something wrong here ?
Turns out it was because I could only query json objects and not arrays with this method.
I’m pretty sure this is a limitation from DynamoDB that you guys are using in production, hence why it’s working with the fdk server.
What would be nice though, is if the sdk could have similar behaviour as your production environment regarding this particular issue