From 0a1648bf47490b312169c531aeb51ef4725e8d2e Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Tue, 30 Jan 2018 12:39:31 -0500 Subject: Saying goodbye to graphcool --- graphcool-old/src/hello.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 graphcool-old/src/hello.js (limited to 'graphcool-old/src/hello.js') diff --git a/graphcool-old/src/hello.js b/graphcool-old/src/hello.js new file mode 100644 index 0000000..0e3e7ba --- /dev/null +++ b/graphcool-old/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