Skip to content

GraphQL torrentContent search() returns no data on "files" #425

Open
@kekazoh

Description

@kekazoh
  • I have checked the existing issues to avoid duplicates
  • I have redacted any info hashes and content metadata from any logs or screenshots attached to this issue

Describe the bug

GraphQL queries do not show files information

To Reproduce

Running a query that requests the files information on the graphql server, like the following:

 {
  torrentContent {
    search(
      input: {
        queryString: ""
        offset: 0
        limit: 1000
        orderBy: { field: published_at, descending: true }
      }
    ) {
      items {
        torrent {
          hasFilesInfo
          files {
            infoHash
            index
            path
            extension
            fileType
            size
            createdAt
            updatedAt
          }
        }
      }
    }
  }
}

Gives null results on files even though hasFilesInfo is almost always true and files data can be seen in the webui dashboard.

Expected behavior

Getting an array of files for each of the torrents in the database.

Environment Information (Required)

  • Bitmagnet version: 0.10.0
  • OS and version: Ubuntu 24.04.2 LTS
  • Browser and version (if issue is with WebUI): [e.g. Chrome 117.0.5938.149]
  • Please specify any config values for which you have overridden the defaults: All defaults

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions