Add function that looks for all blogs

This commit is contained in:
Quinn Hegeman
2026-03-08 15:12:19 +01:00
parent 4d56dce1af
commit 3317926f61
8 changed files with 143 additions and 1 deletions

View File

@@ -0,0 +1,39 @@
query getAllBlogs($date: String!) {
Blogs(sort: ["-date", "-date_created"], filter: { status: { _eq: "published" }, date: { _gte: $date } }) {
id,
date_created,
date_updated,
status,
title,
url,
date,
content,
tags {
Tags_id {
id,
date_created,
date_updated,
text,
code,
color
}
},
search_engine {
id,
date_created,
date_updated,
title,
description,
thumbnail {
id,
created_on,
filename_disk,
width,
height
},
canonical,
allow_crawler,
priority
}
}
}