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

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