It seems to be something I’m doing incorrectly wit...
# prisma-whats-new
m
It seems to be something I’m doing incorrectly with
graphcool-lib
, but I can’t see it.
a
Is it a Schema Extension, or another function?
m
Sorry, transform pipeline
Should have specified
a
Then you need to manually construct the context
fromEvent(event) will not work, I'll find the example, 1 sec...
m
ahh, I thought that as long as a PAT with the same name existed it would work. Is that for Schema extension only?
a
That's for SE only yes
m
Ah, damn.
Ok.
That’s really not clear in that docs page.
Note: the context property of the exposed event object inside a Graphcool Function will include a Permanent Authentication Token if it has the same name as the Graphcool Function. If no such PAT exists, no PAT will be part of the event’s context.
a
No, it isn't. I think they're on the brink of adding context to other function types...
But for now, follow that example outside SE's
m
Thank you for helping with that.
😎 1
n
sorry for the inconvenience 😞
d
Ya I got stuck with this for a bit too. Wish I had noticed this earlier.