tstor/graphql/sources/torrent_query.graphql
royalcat 199a82ff0c
All checks were successful
docker / build-docker (linux/amd64) (push) Successful in 2m16s
docker / build-docker (linux/arm64) (push) Successful in 2m14s
torrent priority and piece state fix
2024-07-07 23:09:13 +03:00

27 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!
}