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