# In the swapi graphql how to find what character is in each planet in each film?

In the swapi graphql how to find what character is in each planet in each film?

SWAPI graphiql

trying:

{
result_a: allFilms(last: 3) {
edges {
node {
id
title
planetConnection {
edges {
node {
id
name
residentConnection {
edges {
node {
id
name
}
}
}
}
}
}
}
}
}
}


problem: getting all the characters resident in each planet but not related to the film/episode in question

desired result: getting all the characters resident in each planet in each movie but only if they are in the movie/episode