HI guys, there is a way to user async/await aat th...
# prisma-whats-new
p
HI guys, there is a way to user async/await aat the graphcool functions? Or I have to resolve everything with Promises?
i
You can use either
Technically, you could also use both together
r
I have found async / await doesn’t always work as expected. But could be an implementation issue.
p
Thanks @iamclaytonray I will try to use this!
oh, I'm creating the function from the console in the graph.cool page, this works there?
i
It should
Honestly, I’ve never written functions inside of the Console. I moved away from the Console when GC open-sourced the framework
p
When I used the async/await I get this error: ReferenceError: regeneratorRuntime is not defined
i
Yeah, I don’t know. I do everything locally