Add filters

This commit is contained in:
samaradel
2021-04-01 13:52:21 +02:00
parent 17939dbd49
commit f177b95f1e
7 changed files with 28 additions and 24 deletions

View File

@@ -36,7 +36,7 @@
<page-query>
query($page: Int){
entries: allBlog(perPage: 10, page: $page, sortBy: "created", order: DESC, filter: {category: { id: {in: ["tech", "foundation"]}}}) @paginate{
entries: allBlog(perPage: 10, page: $page, sortBy: "created", order: DESC, filter: {category: { id: {in: ["blockchain", "experience", "technology", "farming", "community", "infrastructure", "impact"]}}}) @paginate{
totalCount
pageInfo {
totalPages
@@ -69,7 +69,7 @@ query($page: Int){
}
}
topics: allBlogTag{
topics: allBlogTag(filter: { title: {in: ["blockchain", "experience", "technology", "farming", "community", "infrastructure", "impact"]}}) {
edges{
node{
title