tstor/graphql/sources/torrent_query.graphql
royalcat d5aa78cb39
All checks were successful
docker / build-docker (linux/arm64) (push) Successful in 2m8s
docker / build-docker (linux/amd64) (push) Successful in 2m10s
dht store and stats query
2024-07-10 12:26:17 +03:00

28 lines
575 B
GraphQL

type TorrentDaemonQuery {
torrents(filter: TorrentsFilter): [Torrent!]! @resolver
stats: TorrentStats! @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!
}