News for hackers. Stuff that matters.
Re:GraphQL Is a Trap? by lexx on Friday May 06, 2022 @12:17PM (#31286935)
You could give a POST /custom/query with only read capabilities. Also you can give some custom "helper" operations along. And certainly you could give them some option to prettify the response. Because one thing is to query the correct things, another whole thing is how to structure the response according to your needs.

I didn't know Restql. thanks for the link

Re:GraphQL Is a Trap? by safaci2000 on Friday May 06, 2022 @12:29PM (#31287071)
Yeah this was years ago but we had concept of 'hydrated' objects so you'd pass a flag to get back shallow object or the hydrated version that had all the relationship loaded as well.

Some flags for helpers that fetch additional data would be good.