code: function handleBatchRequest(unused1, unused2, data) {
    const requests = data.requests;
    const getResults = requests.map(request => {
      const method = request.method;
      const path = request.path;
      const body = request.body;
      return handleRequest(method, path, body)
        .then(result => Parse.Promise.as({ success: result.response }));
    });
  
    return Parse.Promise.when.apply(null, getResults).then(function theResults() {
      return respond(200, arguments);
    });
  }
docs: Batch requests have the following form: {
  requests: [
  { method, path, body },
  ]
  }