Recently, I had to churn out an endpoint that fetches a list of items. But, the items were objects grouped into categories. That is to say, each category consists of several child objects, that is, many-to-one relationships. And I wanted to fetch all the objects as grouped items in a…