title: Lambda context returning {value: ''} instead of {'key': value}
body: <p>I'm trying to get the value of the key in querystring in my AWS API Gateway.</p>
  <p>In my route, I have something like <code>/server_ip</code> that accepts a <code>device_id</code> querystring.</p>
  <p>However, when I make a GET request to <code>/server_ip?device_id=10</code>,</p>
  <p>I'm getting
  <code>{'10': ''}</code> instead of <code>{'device_id': '10'}</code></p>
  <p>In my <strong>Body Mapping Templates</strong> I've got:</p>
  <pre><code>#set($inputRoot = $input.path('$'))
  {
      &quot;device_id&quot;: &quot;$input.params('device_id')&quot;
  }
  </code></pre>
  <p>In my lambda function I've got:</p>
  <pre><code>exports.handler = (event, context, callback) =&gt; {
      var deviceId = require('querystring').parse(event.device_id);
      callback(null, deviceId);
  };
  </code></pre>
  <p>Am I doing this right? Please point me to the right direction.
  Thanks</p>
  <h1>Solved</h1>
  <p>Turns out the <code>require('querystring')</code> is a <strong>big</strong> no no.</p>
  <p>Directly accessing <code>event.device_id</code> returns the expected <code>{'device_id': '10'}</code>. Must have followed an outdated tutorial.</p>