Run the micro
programmatically.
This makes us of async
/await
and demonstrates a GraphQL query (bonus).
For an example using the micro
binary and/or with a custom Node binary, check out the node-micro
example.
$ yarn
$ up
We use the fast-async
Babel plugin (based on nodent
) to compile away the async
& await
syntax into Promises. This is because Lambda supports Node v6.x (LTS), which does not support the syntax directly.