Only aggregate photos/locations/countries that are published
This commit is contained in:
@@ -96,14 +96,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Count
|
# Count
|
||||||
countPhotos: photo_aggregated {
|
countPhotos: photo_aggregated (
|
||||||
|
filter: { status: { _eq: "published" }},
|
||||||
|
) {
|
||||||
count { id }
|
count { id }
|
||||||
}
|
}
|
||||||
countTotalPhotosByLocation: photo_aggregated (groupBy: "location") {
|
countTotalPhotosByLocation: photo_aggregated (
|
||||||
|
groupBy: "location",
|
||||||
|
filter: { status: { _eq: "published" }},
|
||||||
|
) {
|
||||||
group
|
group
|
||||||
count { id }
|
count { id }
|
||||||
}
|
}
|
||||||
countLocations: location_aggregated {
|
countLocations: location_aggregated (
|
||||||
|
filter: { status: { _eq: "published" }},
|
||||||
|
) {
|
||||||
count { id }
|
count { id }
|
||||||
}
|
}
|
||||||
countCountries: country_aggregated {
|
countCountries: country_aggregated {
|
||||||
|
|||||||
Reference in New Issue
Block a user