RJMetrics / sweet-liberty

A library for building database-backed RESTful services using Clojure
Apache License 2.0
104 stars 6 forks source link

Allow specification of one-to-many vs. one-to-one relationships for expansions #10

Closed timvisher closed 5 years ago

timvisher commented 9 years ago

Right now, sweet-lib always returns a vector of results for expansions. In the case of one-to-one relationships, this means that you either have to use a controller to extract the single result, or push that logic out to clients.

It would be nice if sweet-lib could figure out or be told that the expansion was a one or many relationship and it DTRT.

timvisher commented 9 years ago

/cc @kurtwheeler

timvisher commented 8 years ago

ping :)

timvisher commented 5 years ago

I don't use this library anymore. :(