Use gql for "mangas" III - global search

This commit is contained in:
schroda
2023-09-08 00:06:24 +02:00
parent af9d49e5e9
commit 0a73496cba
5 changed files with 138 additions and 27 deletions

View File

@@ -7,16 +7,16 @@
*/
import gql from 'graphql-tag';
import { FULL_MANGA_FIELDS, FULL_SOURCE_FIELDS } from '@/lib/graphql/Fragments';
import { BASE_MANGA_FIELDS, FULL_SOURCE_FIELDS } from '@/lib/graphql/Fragments';
export const GET_SOURCE_MANGAS_FETCH = gql`
${FULL_MANGA_FIELDS}
${BASE_MANGA_FIELDS}
mutation GET_SOURCE_MANGAS_FETCH($input: FetchSourceMangaInput!) {
fetchSourceManga(input: $input) {
clientMutationId
hasNextPage
mangas {
...FULL_MANGA_FIELDS
...BASE_MANGA_FIELDS
}
}
}