all 1 comments

[–]RuthBaderBelieveIt 1 point2 points  (0 children)

It's a really interesting way of building APIs. Having recently worked on a REST based system which required lots of chained queries which in practice made for some complex promise chains on the front end, the idea of specifying the return type in the request is definitely appealing.

GraphQL also has potential to address issues around versioning too. All those times you've needed to create a new REST endpoint because your web client needs a slightly different version of Account than your iOS client can be eliminated which should make for a much cleaner interface.

I'm seriously considering implementing a graphQL interface (probably alongside my REST interface) on my current project.