title: how to return item after dynamoDB record update
body: <p>I am updating a dynamoDB record conditionally (only if the record has a certain value for one of its attributes). I want to get the record back regardless if it was updated successfully (condition was met or not).</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>docClient.update(params, function(err, data) {
      if (err) {
        console.error(
          "Unable to read item. Error JSON:",
          JSON.stringify(err, null, 2)
        );
        callback(null, true);
      } else {
        console.log("GetItem succeeded:", JSON.stringify(data, null, 2));
      
        
  
        callback(null, true);
      }
    });</code></pre>
  </div>
  </div>
  </p>