Create last albums and fix filename_download in GraphQL
This commit is contained in:
51
astro/src/graphql/photos/getLastAlbums.graphql
Normal file
51
astro/src/graphql/photos/getLastAlbums.graphql
Normal file
@@ -0,0 +1,51 @@
|
||||
query getLastAlbums($date: String!, $limit: Int!) {
|
||||
Photo_Albums(sort: ["-start_date", "-date_created"], filter: { status: { _eq: "published" }, start_date: { _lte: $date }, category: { Photo_Categories_id: { status: { _eq: "published" } } } }, limit: $limit) {
|
||||
id,
|
||||
date_created,
|
||||
date_updated,
|
||||
title,
|
||||
description,
|
||||
url,
|
||||
thumbnail {
|
||||
id,
|
||||
created_on,
|
||||
filename_disk,
|
||||
width,
|
||||
height
|
||||
},
|
||||
start_date,
|
||||
end_date,
|
||||
location,
|
||||
category {
|
||||
Photo_Categories_id {
|
||||
id,
|
||||
status,
|
||||
date_created,
|
||||
date_updated,
|
||||
title,
|
||||
url,
|
||||
thumbnail {
|
||||
id,
|
||||
created_on,
|
||||
filename_disk,
|
||||
width,
|
||||
height
|
||||
}
|
||||
}
|
||||
},
|
||||
photos(filter: { status: { _eq: "published" } }) {
|
||||
id,
|
||||
date_created,
|
||||
date_updated,
|
||||
photo {
|
||||
id,
|
||||
created_on,
|
||||
filename_disk,
|
||||
width,
|
||||
height
|
||||
},
|
||||
text,
|
||||
sort
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user