tandy
tandy copied to clipboard
Auto-generated, RESTful, CRUDdy route handlers for Objection models in hapi
Bedwetter had a form of this, and now that I've decided not to port that functionality I've found a use-case for it.
A call to `/users/comments` should get you all `users` with their `comments`.
Objection's `insertGraph` should make this pretty straightforward, though identifying relations could be tricky?
I already had lodash in here, with with node:assert now available, I didn't really need Hoek anymore
Currently sort is dialect-specific (as it's being passed into the query as a raw string, therefore subject to dialects quoting rules) and being limited to one key One idea that...
This adds a new includeTotalCount flag that by default exposes the current range and total count as specified in [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) and a property totalCountHeader, which if set to anything other...