fenos / graphql-thinky

GraphQL & Relay powered by thinky / RethinkDB. https://graphql-thinky.readme.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't use async/await

gutenye opened this issue · comments

commented

It needs require('babel-polyfill') in a vanilla node script or use babel-node to run it.

It's bad to force developers use the babel-polyfill.

Thanks for the suggestion, appreciated. I choose to use async & await because it allowed me to write more clean code. If it is something that developers doesn't like as you mentioned, I'll be happy to replace them with standard way. Let's keep this open and gather feedback. I really enjoy the expressiveness of async & await

commented

Chrome 55 Beta added async/await, https://blog.chromium.org/2016/10/chrome-55-beta-input-handling.html

So node will have it in the near feature.