News for hackers. Stuff that matters.
Re:GraphQL Is a Trap? by pandesal on Friday May 06, 2022 @02:32PM (#31288368)
Then that's a problem with the schema implementation and not necessarily a fault of GraphQL. The people implementing a GraphQL schema should be working very closely with the people working on the frontend and put a lot of importance on how they want to consume the data.

GraphQL schemas that basically just expose the data models 1:1 without considering the exact workflows the frontend needs is a terrible implementation and misuse of GraphQL. Might as well just expose the data using REST

Re:GraphQL Is a Trap? by bern4444 on Friday May 06, 2022 @03:48PM (#31289017)
Yup I agree. But this is often what happens imo. That level of cross collaboration seems naturally unlikely.
Re:GraphQL Is a Trap? by cellar_door on Friday May 06, 2022 @06:15PM (#31290122)
Unfortunately this is my experience as well. Generally it's a misalignment of priorities. Since the people writing the endpoint don't have to consume it, they just do whatever is easiest as quickly as possible. And often many are dismissive of frontend concerns when challenged.