Update findGalleries to only fetch imageCount instead of all images (#941)

This commit is contained in:
InfiniteTF
2020-11-15 04:40:47 +01:00
committed by GitHub
parent c74f145224
commit ba8b3b29a4
8 changed files with 57 additions and 23 deletions

View File

@@ -0,0 +1,28 @@
fragment GallerySlimData on Gallery {
id
checksum
path
title
date
url
details
rating
image_count
cover {
...SlimImageData
}
studio {
...StudioData
}
tags {
...TagData
}
performers {
...PerformerData
}
scene {
id
title
path
}
}

View File

@@ -2,7 +2,7 @@ query FindGalleries($filter: FindFilterType, $gallery_filter: GalleryFilterType)
findGalleries(gallery_filter: $gallery_filter, filter: $filter) {
count
galleries {
...GalleryData
...GallerySlimData
}
}
}
@@ -11,4 +11,4 @@ query FindGallery($id: ID!) {
findGallery(id: $id) {
...GalleryData
}
}
}