28 lines
542 B
GraphQL
28 lines
542 B
GraphQL
|
type TorrentDaemonQuery {
|
||
|
torrents(filter: TorrentsFilter): [Torrent!]! @resolver
|
||
|
}
|
||
|
|
||
|
input TorrentsFilter {
|
||
|
infohash: StringFilter
|
||
|
name: StringFilter
|
||
|
bytesCompleted: IntFilter
|
||
|
bytesMissing: IntFilter
|
||
|
peersCount: IntFilter
|
||
|
priority: TorrentPriorityFilter
|
||
|
}
|
||
|
|
||
|
input TorrentPriorityFilter @oneOf {
|
||
|
eq: TorrentPriority
|
||
|
gt: TorrentPriority
|
||
|
lt: TorrentPriority
|
||
|
gte: TorrentPriority
|
||
|
lte: TorrentPriority
|
||
|
in: [TorrentPriority!]
|
||
|
}
|
||
|
|
||
|
input TorrentFilter @oneOf {
|
||
|
everything: Boolean
|
||
|
infohash: String
|
||
|
# pathGlob: String!
|
||
|
}
|