This commit is contained in:
25
models/graphql/typedef.ts
Normal file
25
models/graphql/typedef.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user