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.
Right now, sweet-lib always returns a
vector
of results for expansions. In the case ofone-to-one
relationships, this means that you either have to use acontroller
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.