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 27, 2023
1 parent 361a832 commit aaf9e35
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions hasura/metadata/query_collections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -636,53 +636,6 @@
}
}
}
- name: Public - Query latest update manga
query: |
query GetLatestUpdatedManga {
manga(order_by: {latest_published:desc_nulls_last}, limit: 6, where: {status:{_neq:"Removed"}}) {
id
latest_published
manga_total_views {
views
}
manga_total_likes {
likes
}
manga_creators {
creator {
id
name
isActive
}
}
status
chapters(limit: 1, order_by: {pushlish_date: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
}
}
- name: Public - Get manga list by list id
query: |
query GetListMangaById ($id: [Int!]) {
Expand Down Expand Up @@ -841,3 +794,50 @@
}
}
}
- name: Public - Query latest update manga
query: |
query GetLatestUpdatedManga {
manga(order_by: {latest_published:desc_nulls_last}, where: {status:{_neq:"Removed"}}) {
id
latest_published
manga_total_views {
views
}
manga_total_likes {
likes
}
manga_creators {
creator {
id
name
isActive
}
}
status
chapters(limit: 1, order_by: {pushlish_date: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
}
}

0 comments on commit aaf9e35

Please sign in to comment.