feat: added post methods for strapi service

This commit is contained in:
darwincereska
2026-02-17 06:23:00 -05:00
parent 6384b0d874
commit 3afb3477ec
5 changed files with 283 additions and 5 deletions

View File

@@ -65,8 +65,9 @@ query GetAllPosts($pageSize: Int = 10, $page: Int = 1) {
# Get featured posts
query GetFeaturedPosts($pageSize: Int = 10, $page: Int = 1) {
# @genqlient(flatten: true)
posts(pagination: { pageSize: $pageSize, page: $page }
filters: { featured: { eq: true } }
posts(
pagination: { pageSize: $pageSize, page: $page }
filters: { featured: { eq: true } }
) {
...PostSummary
}