gql dir ls
This commit is contained in:
parent
6a1e338af4
commit
e576e62599
23 changed files with 1671 additions and 138 deletions
graphql
|
@ -1,5 +1,6 @@
|
|||
type Query {
|
||||
torrents(filter: TorrentsFilter, pagination: Pagination): [Torrent!]!
|
||||
fsListDir(path: String!): [DirEntry!]!
|
||||
}
|
||||
|
||||
input TorrentsFilter {
|
||||
|
@ -40,4 +41,4 @@ input DateTimeFilter @oneOf {
|
|||
|
||||
input BooleanFilter @oneOf {
|
||||
eq: Boolean
|
||||
}
|
||||
}
|
||||
|
|
26
graphql/types/fs.graphql
Normal file
26
graphql/types/fs.graphql
Normal file
|
@ -0,0 +1,26 @@
|
|||
interface DirEntry {
|
||||
name: String!
|
||||
}
|
||||
|
||||
type Dir implements DirEntry {
|
||||
name: String!
|
||||
}
|
||||
|
||||
type File implements DirEntry {
|
||||
name: String!
|
||||
size: Int!
|
||||
}
|
||||
|
||||
type ResolverFS implements DirEntry {
|
||||
name: String!
|
||||
}
|
||||
|
||||
type TorrentFS implements DirEntry {
|
||||
name: String!
|
||||
torrent: Torrent!
|
||||
}
|
||||
|
||||
type ArchiveFS implements DirEntry {
|
||||
name: String!
|
||||
size: Int!
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue