diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index 85b119c..20d6580 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -96,14 +96,21 @@ } # Count - countPhotos: photo_aggregated { + countPhotos: photo_aggregated ( + filter: { status: { _eq: "published" }}, + ) { count { id } } - countTotalPhotosByLocation: photo_aggregated (groupBy: "location") { + countTotalPhotosByLocation: photo_aggregated ( + groupBy: "location", + filter: { status: { _eq: "published" }}, + ) { group count { id } } - countLocations: location_aggregated { + countLocations: location_aggregated ( + filter: { status: { _eq: "published" }}, + ) { count { id } } countCountries: country_aggregated {