One to Many

Hello,

I am trying to figure out how to do a one to many relationships. I am using JDBC and I have tried to do it via aggregate but can't figure it out.

All I am trying to do is.

{
id: "1"
title: "Batman v Superman"
genre: {
id: "1"
"name": "Action"
}
}

The movie, and genre(s) are in two tables. I just want to join them together and have the join be an array of objects.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.