mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Update findGalleries to only fetch imageCount instead of all images (#941)
This commit is contained in:
28
graphql/documents/data/gallery-slim.graphql
Normal file
28
graphql/documents/data/gallery-slim.graphql
Normal 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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ type Gallery {
|
||||
rating: Int
|
||||
scene: Scene
|
||||
studio: Studio
|
||||
image_count: Int!
|
||||
tags: [Tag!]!
|
||||
performers: [Performer!]!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user