4 ms·
As pointed out in the comments, this section is spot on: "That said, I do of course think having all of these concepts implemented and documented in one single
by sorenbs 10y ago
As pointed out in the comments, this section is spot on:
"That said, I do of course think having all of these concepts implemented and documented in one single “package” like GraphQL is super handy. GraphQL removes the arguing or confusion about what is “the most RESTful way to do something”, as it has a spec and example implementations."
Most reasonably complex rest apis have some version of GraphQL build into them. So in a way GraphQL is just standardising existing practices.
- aryes 10y agoNo the article is right OData offers most of what graphQL has now since 2012. Honestly aside of the HATEOAS principle (see ion). But the key difference is the community engagement and corporate sponsorship, OData had only a lukewarm support from Microsoft and others like SAP. And aside Apache Olingo there isn't much left in library support. (Trust me I'm sad to have to write this). GraphQL on the other hand is drawing both community and corporate support including full support from FB. Time will tell if this will diminish, but the support seems to mimick the success with golang.
- int_19h 10y agoMicrosoft essentially created OData; what do you mean by "lukewarm support"?
- aryes 10y agoLukewarm relative to the support FB is giving to graphQL. To me opendata felt like a second class project (vs the efforts MS has put around .Net and other code that was open sourced recently). But it may just my perception.
- int_19h 10y agoAnd speaking of OData, is there any good side by side comparison of OData and GraphQL?
- aryes 10y agoI saw this slide deck https://www.slideshare.net/mobile/SumitSarkar10/rest-api-debate-odata-vs-graphql-vs-ords https://www.slideshare.net/mobile/SumitSarkar10/rest-api-deb...
- techniq 10y agoI've created a lightweight odata query builder based somewhat on MongoDB and js-data's query object syntax you might find helpful: https://github.com/techniq/odata-query https://github.com/techniq/odata-query I also built a React component that builds upon this as well, if you're into that - https://github.com/techniq/react-odata https://github.com/techniq/react-odata
- ewrcoffee 10y agoExactly, that paragraph is a very strong argument in favor of GraphQL.