6 ms·
Unfortunately Autocode doesn’t use graphql
by ufvy 6y ago
Unfortunately Autocode doesn’t use graphql
- keithwhor 6y agoYou're half-right - we have a specification called FunctionScript [0] that can act as what's basically a universal translation layer for any API. You just generate a proxy to it using FunctionScript. So it's possible to add GraphQL APIs to our stdlib, it's just not convenient right now. All of Shopify is a GQL API, for example. The reason we don't support GQL APIs natively is because we designed Autocode to follow the best practices of the top API companies we knew; Twilio and Stripe. Both companies designed their SDKs in a way that feels natural: a call to their API is achieved via a namespaced function call -- it's very Railslike. Everything available in our stdlib follows that convention as we felt it was the most intuitive approach to API / SDK design. [0] https://github.com/FunctionScript/FunctionScript https://github.com/FunctionScript/FunctionScript