Hacker News new | ask | show | jobs
by lexx 1500 days ago
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

1 comments

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.