26 lines
359 B
TypeScript
26 lines
359 B
TypeScript
import { gql } from "graphql-tag";
|
|
|
|
export const typeDefs = gql`
|
|
scalar JSON
|
|
|
|
input AddTorrentInput {
|
|
torrentToDownload: String!
|
|
comicObjectId: ID!
|
|
}
|
|
|
|
type AddTorrentResult {
|
|
result: JSON
|
|
}
|
|
|
|
type Query {
|
|
_empty: String
|
|
}
|
|
|
|
type Mutation {
|
|
"""
|
|
Add a torrent to qBittorrent
|
|
"""
|
|
addTorrent(input: AddTorrentInput!): AddTorrentResult
|
|
}
|
|
`;
|