tstor/graphql/query.graphql

47 lines
654 B
GraphQL
Raw Normal View History

2024-01-28 20:22:49 +00:00
type Query {
2024-04-27 11:00:34 +00:00
torrents(filter: TorrentsFilter): [Torrent!]!
2024-04-24 17:36:33 +00:00
fsEntry(path: String!): FsEntry
2024-01-28 20:22:49 +00:00
}
input TorrentsFilter {
2024-04-24 17:36:33 +00:00
infohash: StringFilter
2024-01-28 20:22:49 +00:00
name: StringFilter
bytesCompleted: IntFilter
bytesMissing: IntFilter
peersCount: IntFilter
2024-04-27 11:00:34 +00:00
downloading: BooleanFilter
2024-01-28 20:22:49 +00:00
}
input Pagination {
offset: Int!
limit: Int!
}
input StringFilter @oneOf {
eq: String
substr: String
in: [String!]
}
input IntFilter @oneOf {
eq: Int
gt: Int
lt: Int
gte: Int
lte: Int
in: [Int!]
}
input DateTimeFilter @oneOf {
eq: DateTime
gt: DateTime
lt: DateTime
gte: DateTime
lte: DateTime
}
input BooleanFilter @oneOf {
eq: Boolean
2024-03-19 21:30:37 +00:00
}