Skip to content

Commit

Permalink
Merge pull request #35 from aura-nw/get-manga-detail
Browse files Browse the repository at this point in the history
add status
  • Loading branch information
ThienLK1 authored Aug 12, 2024
2 parents c13d341 + c6ba97f commit ed3051a
Showing 1 changed file with 16 additions and 55 deletions.
71 changes: 16 additions & 55 deletions hasura/metadata/query_collections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,21 @@
}
}
}
- name: Public - Get manga by creator and contest
query: |
query manga ($contest_id: Int!, $id: Int!, $limit: Int = 100, $offset: Int = 0) {
manga(where: {contest_id:{_eq:$contest_id},manga_creators:{creator_id:{_eq:$id}}}, limit: $limit, offset: $offset) {
banner
id
slug
poster
}
manga_aggregate(where: {contest_id:{_eq:$contest_id},manga_creators:{creator_id:{_eq:$id}}}, limit: $limit, offset: $offset) {
aggregate {
count
}
}
}
- name: Public - Get artwork by creator and contest
query: |
query artwork ($contest_id: Int!, $id: Int!, $limit: Int = 100, $offset: Int = 0) {
Expand Down Expand Up @@ -1427,64 +1442,10 @@
id
}
slug
status
updated_at
created_at
}
}
}
}
- name: Public - Get manga by creator and contest
query: |
query manga ($contest_id: Int!, $id: Int!, $limit: Int = 100, $offset: Int = 0) {
manga(where: {contest_id:{_eq:$contest_id},manga_creators:{creator_id:{_eq:$id}}}, limit: $limit, offset: $offset) {
id
slug
latest_published
manga_total_views {
views
}
manga_total_likes {
likes
}
manga_creators {
creator {
id
slug
name
pen_name
isActive
}
}
status
chapters(limit: 1, order_by: {chapter_number:desc}, where: {status:{_eq:"Published"}}) {
id
chapter_number
pushlish_date
status
updated_at
}
manga_tags(limit: 5) {
tag {
id
tag_languages {
language_id
tag_id
value
}
}
}
manga_languages {
title
description
is_main_language
language_id
}
banner
poster
}
manga_aggregate(where: {contest_id:{_eq:$contest_id},manga_creators:{creator_id:{_eq:$id}}}, limit: $limit, offset: $offset) {
aggregate {
count
}
}
}

0 comments on commit ed3051a

Please sign in to comment.