Optionally migrate track bindings

This commit is contained in:
schroda
2024-04-20 23:51:47 +02:00
parent 0d8bb789a0
commit 2066851793
9 changed files with 116 additions and 21 deletions

View File

@@ -50,7 +50,12 @@ export const GET_MANGA_FETCH = gql`
// makes the server fetch and return the manga
export const GET_MANGA_TO_MIGRATE_TO_FETCH = gql`
mutation GET_MANGA_TO_MIGRATE_TO_FETCH($id: Int!, $migrateChapters: Boolean!, $migrateCategories: Boolean!) {
mutation GET_MANGA_TO_MIGRATE_TO_FETCH(
$id: Int!
$migrateChapters: Boolean!
$migrateCategories: Boolean!
$migrateTracking: Boolean!
) {
fetchManga(input: { id: $id }) {
clientMutationId
manga {
@@ -62,6 +67,13 @@ export const GET_MANGA_TO_MIGRATE_TO_FETCH = gql`
id
}
}
trackRecords @include(if: $migrateTracking) {
nodes {
id
remoteId
trackerId
}
}
}
}
fetchChapters(input: { mangaId: $id }) @include(if: $migrateChapters) {