Implement binding manga to tracker

This commit is contained in:
schroda
2024-03-10 17:36:22 +01:00
parent f913f5ec32
commit 66c57a542b
17 changed files with 905 additions and 30 deletions

View File

@@ -45,3 +45,34 @@ export const TRACKER_LOGOUT = gql`
}
}
`;
export const TRACKER_BIND = gql`
mutation TRACKER_BIND($mangaId: Int!, $remoteId: LongString!, $trackerId: Int!) {
bindTrack(input: { mangaId: $mangaId, remoteId: $remoteId, trackerId: $trackerId }) {
trackRecord {
id
title
status
lastChapterRead
totalChapters
score
startDate
finishDate
remoteUrl
remoteId
tracker {
id
}
manga {
id
trackRecords {
totalCount
nodes {
id
}
}
}
}
}
}
`;