Skip to content

Commit

Permalink
feat(hasura): update api
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Jul 28, 2023
1 parent 3eade4d commit 9becc99
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions hasura/metadata/query_collections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -716,54 +716,6 @@
}
}
}
- name: Public - Get subscribe list
query: |
query GetSubscribeList ($user_id: String = "") {
subscribers(order_by: {created_at:desc}, where: {_and:{user_id:{_eq:$user_id},subscribers_manga:{status:{_neq:"Removed"}}}}) {
subscribers_manga {
id
banner
poster
status
nearest_upcoming
manga_languages {
is_main_language
language_id
title
}
manga_creators {
creator {
id
name
isActive
}
}
chapters(order_by: {chapter_number:desc_nulls_last}, limit: 1, where: {status:{_eq:"Published"}}) {
chapter_number
id
pushlish_date
}
chapters_aggregate {
aggregate {
sum {
likes
views
}
}
}
manga_tags {
tag {
id
tag_languages {
language_id
value
}
}
}
}
user_id
}
}
- name: Public - Query latest update manga
query: |
query GetLatestUpdatedManga {
Expand Down Expand Up @@ -844,3 +796,51 @@
}
}
}
- name: Public - Get subscribe list
query: |
query GetSubscribeList ($user_id: String = "") {
subscribers(order_by: {created_at:desc}, where: {_and:{user_id:{_eq:$user_id},subscribers_manga:{status:{_neq:"Removed"}}}}) {
subscribers_manga {
id
banner
poster
status
nearest_upcoming
manga_languages {
is_main_language
language_id
title
}
manga_creators {
creator {
id
name
isActive
}
}
chapters(order_by: {chapter_number:desc_nulls_last}, limit: 1, where: {status:{_eq:"Published"}}) {
chapter_number
id
pushlish_date
}
chapters_aggregate {
aggregate {
sum {
likes
views
}
}
}
manga_tags(limit: 5) {
tag {
id
tag_languages {
language_id
value
}
}
}
}
user_id
}
}

0 comments on commit 9becc99

Please sign in to comment.