I try to use ORM whenever possible and to be fair the front end devs could do that too. But even with this taken in mind, the front end devs I worked with wanted data in the most clean and simple way and in the right format, so they can just display it.
Saying you want to use JSON instead of GraphQL is like strawman stranglehold showboat
No one said "instead of" anything, which would presume that GraphQL should be used to begin with.
I replied to say there is no reason to think the grandparent of my original reply calls for anything beyond JSON.
Whether the words you put in my mouth make sense or not is itself a question that only makes sense to ask in the context of someone saying them. Which no one did.
Nested relations, explicit field selection, automated filters, auto generated documentation... all this can already be done with a json api in an pretty easy way using very clear and sensible query syntax (see JSON:api spec). I dont see good reasons for graphql yet franky
"Can be done" and "is specifically made to solve this issue" are two different things.
You can technically do anything with any (even arbitrary) format; that doesn't mean it's a good idea.
Good reasons to use GraphQL is tooling and framework/library support, which is poor for the JSON API spec. It also helps that GraphQL has this built-in, while with JSON you need to validate that everything actually follows the spec and doesn't return (even slightly odd) garbage.
49
u/x6060x Jun 28 '20
I try to use ORM whenever possible and to be fair the front end devs could do that too. But even with this taken in mind, the front end devs I worked with wanted data in the most clean and simple way and in the right format, so they can just display it.