Removed unnecessary actor details from releases query.

This commit is contained in:
DebaucheryLibrarian 2023-07-22 23:43:44 +02:00
parent 191a3628b5
commit d7ee278b02
1 changed files with 16 additions and 1 deletions

View File

@ -97,6 +97,13 @@ const actorFields = `
${actorStashesFields}
`;
const basicActorFields = `
id
name
slug
gender
`;
const movieFields = `
id
title
@ -240,6 +247,14 @@ const releaseActorsFragment = `
}
`;
const releaseBasicActorsFragment = `
actors: releasesActors(orderBy: ACTOR_BY_ACTOR_ID__GENDER_ASC) {
actor {
${basicActorFields}
}
}
`;
const releaseDirectorFragment = `
directors: releasesDirectors(orderBy: ACTOR_BY_DIRECTOR_ID__NAME_ASC) {
director {
@ -379,7 +394,7 @@ const releaseFields = `
createdAt
url
createdBatchId
${releaseActorsFragment}
${releaseBasicActorsFragment}
${releaseTagsFragment}
${releasePosterFragment}
${releaseCoversFragment}