I want to update an item in DynamoDB only if the new item has a more recent date than the existing item. Currently, I'm querying for the existing item, doing the comparison in my code, and then writing to db. I was wondering if there was a way to have DynamoDB do the checking and updating in single query.i have used conditionalexpression but it's not updating value even if condition satisfies. I'm working with nodejs.