@deity/falcon-blog-data

This extension get data from @detiy/falcon-blog-extension.

It includes GraphQL queries for blog data (Post and PostList)

PostQuery

This expects path which is the path of the blog post

query BlogPost($path: String!) {
blogPost(path: $path) {
title
date
content
image {
url
description
}
}
}

PostListQuery

The blog list expects, but doesn't require a pagniation object as a parameter.

Pagination Object

const pagination = {
perPage: [ITEMS_PER_PAGE],
page: [CURRENT_PAGE]
}
query BlogPosts($pagination: PaginationInput) {
blogPostList(pagination: $pagination) {
items {
title
date
slug
excerpt
image {
url
description
}
}
pagination {
currentPage
nextPage
prevPage
perPage
totalPages
}
}
}

Ask the community. #help

If you can't find what you're looking for, the answer might be on our community slack channel. Our team keep a close eye on this and will usually get back to you within a few hours, if not straight away. If you haven't created an account yet please sign up here slack.deity.io.