Optionally migrate track bindings
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user