title: redis client and node js - hgetall method fails with empty results
body: <p>This is day one for me with redis cilent and node js. </p>
  
  <p>I'm trying to replicate this command that I run via the redis-cli in node.js: </p>
  
  <pre><code>127.0.0.1:6379&gt; HGETALL widgets:9145090003_00:00_00:00
  1) "id"
  2) "33305"
  3) "loc"
  4) "jamaica"
  5) "days"
  6) ""
  </code></pre>
  
  <p>Here's the nodejs code: </p>
  
  <pre><code>client.hgetall("widgets:9145090003_00:00_00:00", function (err, replies) {
          console.log(err);
          replies.forEach(function (reply,i) {
                  console.log('  ' + i + ':' + reply);
          }); 
  });
  </code></pre>
  
  <p>It comes back null and then fails while trying to do the foreach.</p>
  
  <p>i also tried: </p>
  
  <pre><code> client.hgetall("widgets", function (err, replies) {
              console.log(err);
              replies.forEach(function (reply,i) {
                      console.log('  ' + i + ':' + reply);
              }); 
      });
  </code></pre>
  
  <p>But I get the same result. </p>
  
  <p>Not sure what I'm doing wrong. </p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>I tried this code: </p>
  
  <pre><code> 17 console.log("attempting to do hgetall..");
   18 client.hgetall("widgets:9145090003_00:00_00:00", function (err, replies) {
   19         //for (let k in replies) console.log(' ${k}:${replies[k]}');
   20         console.log(replies.id);
   21 });
  </code></pre>
  
  <p>And here are the results: </p>
  
  <pre><code>/var/www/html/node/test/models/Widgets.js:20
      console.log(replies.id);
                         ^
  
  TypeError: Cannot read property 'id' of null
  </code></pre>
  
  <p>And yet, in the CLI i can do this: </p>
  
  <pre><code>127.0.0.1:6379&gt; HGET widgets:9145090003_00:00_00:00 id
  "33305"
  127.0.0.1:6379&gt; HGETALL widgets:9145090003_00:00_00:00
  1) "id"
  2) "33305"
  3) "loc"
  4) "jamaica"
  5) "days"
  6) ""
  127.0.0.1:6379&gt; 
  </code></pre>