DynamoDB - dynamic method to insert or edit an item
Tips and tricks I learned after struggling with dynamodb updateItem method
Tags: aws, javascript, debugging, serverless