Skip to content

Commit

Permalink
make like count work for news #55
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Jun 30, 2024
1 parent e731b17 commit bf0610b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/queries/singleNewsQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,35 @@ export default `
query PostBySlug($status: String, $slug: String, $type: String) {
posts(filters: {status:{eq:$status}, slug:{eq:$slug}, type:{eq:$type}}) {
data {
id
attributes {
title
slug
content
excerpt
likeCount{
total
like
fire
unicorn
}
likes{
data{
id
attributes{
like
love
fire
unicorn
total
user{
data{
id
}
}
}
}
}
seo{
metaDesc
canonical
Expand Down

0 comments on commit bf0610b

Please sign in to comment.