code: function requestToContext(req) {
    const queryMap = req.method === 'POST' ? req.body : _url2.default.parse(req.url, true).query;
    const context = {};
  
    if (queryMap) {
      Object.keys(queryMap).forEach(key => {
        let arg = queryMap[key];
  
        if (parseArgs[key] && arg) {
          context[key] = JSON.parse(arg);
        } else {
          context[key] = arg;
        }
      });
    }
    return Object.freeze(context);
  }
docs: !
  falcor-koa - index.js
  Copyright(c) 2015
  Released under the Apache-2.0 license
  
  Authors:
  mfellner <max.fellner@gmail.com>