diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-01-30 12:39:31 -0500 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-01-30 12:39:31 -0500 |
| commit | 0a1648bf47490b312169c531aeb51ef4725e8d2e (patch) | |
| tree | a9c3dd7b50bc8dd563d9efeee3eeafaca1b3019a /graphcool-old/src/hello.js | |
| parent | 0f1b9240bbd05b377e868faf78b89b509a3d7537 (diff) | |
Saying goodbye to graphcool
Diffstat (limited to 'graphcool-old/src/hello.js')
| -rw-r--r-- | graphcool-old/src/hello.js | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
