title: Is there an easier way to convert javascript object to dynamodb update expression?
body: <p>I am using nodejs <code>aws-sdk/clients/dynamodb</code> library with dynamodb. I need to update an item in the table. Below is the sample code to update an item:</p>
  <pre><code>params = {
      TableName:table,
      Key:{
          &quot;year&quot;: year,
          &quot;title&quot;: title
      },
      UpdateExpression: &quot;set info.rating = info.rating + :val&quot;,
      ExpressionAttributeValues:{
          &quot;:val&quot;: 1
      },
      ReturnValues:&quot;UPDATED_NEW&quot;
  };
  </code></pre>
  <p>I will have to specify each attribute in <code>info</code> in <code>UpdateExpression</code>. My <code>info</code> object is very big and I am looking for an easier way to do that. Is there a build-in method to support update an object to dynamodb item? something like:</p>
  <pre><code>params = {
      TableName:table,
      Key:{
          &quot;year&quot;: year,
          &quot;title&quot;: title
      },
      Item: info
  };
  </code></pre>