Get all relationship data in one request with Directus 8 JS SDK

Viewed 1480

I have the following collections: Movies and Actors.

I just want to call client.getItems('Movies') and get the data of all movies with the linked actors data per item also. It seems to me I can only do that, if I call another client.getItems with the specific ID of the actor:

client.getItems(
  'actors',
  {
    filters: {
      movie: {
        movie_id: 5
      }
    }
  }
)

Is there no other way?

1 Answers
Related