Feature/gql improve queries mutations subscriptions (#470)
* [Codegen] Request less fields for category mutations * [Codegen] Request less fields for chapter mutations * [Codegen] Request less fields for downloader mutations * [Codegen] Request less fields for extension mutations * [Codegen] Request less fields for manga mutations * [Codegen] Request less fields for source mutations * [Codegen] Request less fields for updater subscription * [Codegen] Request less fields for downloader subscription * [Codegen] Combine chapter update mutations
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import gql from 'graphql-tag';
|
||||
import { FULL_CHAPTER_FIELDS, FULL_DOWNLOAD_STATUS } from '@/lib/graphql/Fragments';
|
||||
import { FULL_DOWNLOAD_STATUS } from '@/lib/graphql/Fragments';
|
||||
|
||||
export const CLEAR_DOWNLOADER = gql`
|
||||
${FULL_DOWNLOAD_STATUS}
|
||||
@@ -22,24 +22,24 @@ export const CLEAR_DOWNLOADER = gql`
|
||||
`;
|
||||
|
||||
export const DELETE_DOWNLOADED_CHAPTER = gql`
|
||||
${FULL_CHAPTER_FIELDS}
|
||||
mutation DELETE_DOWNLOADED_CHAPTER($input: DeleteDownloadedChapterInput!) {
|
||||
deleteDownloadedChapter(input: $input) {
|
||||
clientMutationId
|
||||
chapters {
|
||||
...FULL_CHAPTER_FIELDS
|
||||
id
|
||||
isDownloaded
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DELETE_DOWNLOADED_CHAPTERS = gql`
|
||||
${FULL_CHAPTER_FIELDS}
|
||||
mutation DELETE_DOWNLOADED_CHAPTERS($input: DeleteDownloadedChaptersInput!) {
|
||||
deleteDownloadedChapters(input: $input) {
|
||||
clientMutationId
|
||||
chapters {
|
||||
...FULL_CHAPTER_FIELDS
|
||||
id
|
||||
isDownloaded
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -106,24 +106,22 @@ export const REORDER_CHAPTER_DOWNLOAD = gql`
|
||||
`;
|
||||
|
||||
export const START_DOWNLOADER = gql`
|
||||
${FULL_DOWNLOAD_STATUS}
|
||||
mutation START_DOWNLOADER($input: StartDownloaderInput = {}) {
|
||||
startDownloader(input: $input) {
|
||||
clientMutationId
|
||||
downloadStatus {
|
||||
...FULL_DOWNLOAD_STATUS
|
||||
state
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const STOP_DOWNLOADER = gql`
|
||||
${FULL_DOWNLOAD_STATUS}
|
||||
mutation STOP_DOWNLOADER($input: StopDownloaderInput = {}) {
|
||||
stopDownloader(input: $input) {
|
||||
clientMutationId
|
||||
downloadStatus {
|
||||
...FULL_DOWNLOAD_STATUS
|
||||
state
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user