Hacker News new | ask | show | jobs
by thebigredgeek 3379 days ago
Interesting, I don't think I've ever used OData. It looks like OData is similar to JSONAPI? GraphQL is strictly a specification and query language for making queries against your API in the same way that your backend makes queries against your database. You can grab as much data as you want in a single request, as you can with certain RESTful protocols like JSONAPI. However, with GraphQL, you don't really have to roll your own protocol implementation. You simply define functions that handle certain portions of your operations by making calls to your model layer or service layer. I would choose GraphQL over JSONAPI any day.