From 0f1b9240bbd05b377e868faf78b89b509a3d7537 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 27 Oct 2017 13:24:41 -0400 Subject: ayeee --- graphcool/src/hello.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 graphcool/src/hello.js (limited to 'graphcool/src/hello.js') diff --git a/graphcool/src/hello.js b/graphcool/src/hello.js new file mode 100644 index 0000000..0e3e7ba --- /dev/null +++ b/graphcool/src/hello.js @@ -0,0 +1,11 @@ +export default async event => { + // you can use ES7 with async/await and even TypeScript in your functions :) + + await new Promise(r => setTimeout(r, 50)) + + return { + data: { + message: `Hello ${event.data.name || 'World'}` + } + } +} \ No newline at end of file -- cgit v1.3