I’m ripping my hair on on an inline function. Gett...
# prisma-whats-new
m
I’m ripping my hair on on an inline function. Getting this back:
Copy code
{
  "error": "Function returned invalid status code: 500. Raw body: {\n  \"code\": 500,\n  \"error\": \"Script generated an unhandled synchronous exception.\",\n  \"details\": \"TypeError: Cannot read property 'graphcool' of undefined\",\n  \"name\": \"TypeError\",\n  \"message\": \"Cannot read property 'graphcool' of undefined\",\n  \"stack\": \"TypeError: Cannot read property 'graphcool' of undefined\\n    at fromEvent (/data/_verquire/graphcool-lib/0.0.3/node_modules/graphcool-lib/dist/src/index.js:96:39)\\n    at module.exports (/data/io/d653e2ed87574830ac0f87875203c432/webtask.js:7:19)\\n    at /data/io/d653e2ed87574830ac0f87875203c432/webtask.js:40:24\\n    at Async.series.Request.get.Async.series.Async.forEachOf.createError.code (/data/sandbox/lib/sandbox.js:854:33)\\n    at /data/sandbox/node_modules/async/dist/async.js:3853:24\\n    at replenish (/data/sandbox/node_modules/async/dist/async.js:946:17)\\n    at iterateeCallback (/data/sandbox/node_modules/async/dist/async.js:931:17)\\n    at /data/sandbox/node_modules/async/dist/async.js:906:16\\n    at /data/sandbox/node_modules/async/dist/async.js:3858:13\\n    at /data/sandbox/lib/sandbox.js:928:24\"\n}"
}