tstor/ui/lib/api/fs_entry.graphql

45 lines
587 B
GraphQL
Raw Permalink Normal View History

2024-04-24 17:36:33 +00:00
fragment File on File {
name
size
}
fragment TorrentDir on TorrentFS {
name
torrent {
name
infohash
bytesCompleted
torrentFilePath
bytesMissing
}
}
fragment ArchiveDir on ArchiveFS {
name
size
}
fragment DirEntry on FsEntry {
name
...TorrentDir
...ArchiveDir
...File
}
query ListDir($path: String!) {
fsEntry(path: $path) {
name
... on Dir {
entries {
...DirEntry
}
}
...TorrentDir
...ArchiveDir
}
}