Anyone else experienced error like this using `gra...
# prisma-whats-new
n
Anyone else experienced error like this using
graphcool-lib
?
Copy code
TypeError: Cannot read property 'projectId' of undefined
at fromEvent (/data/_verquire/graphcool-lib/0.0.3/node_modules/graphcool-lib/dist/src/index.js:96:49)
at module.exports.api.request.then.response.then.response.then (/data/io/ee32f2fe347f41d1a88939d22fa504f8/webtask.js:7:21)
d
You need to define the project id and pat. The docs aren't too clear about this.
There was a dicussion the other day about it.
You need to add the context properties to the event object.
n
Hmm ok. I thought
fromEvent
handled this. Since I’m inside a Function on the server.
a
I thought that was fixed already, all function types should have projectId in the context
Could you check the logs for the contents of
context
?
n
I think I’ve an unhandled error somewhere, context keeps being added via the Functions editor, but I think Nilan has a ticket for that open.
Got what I needed working
👍🏻 1