Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL 查询 subject relations 缺失 #892

Open
Him188 opened this issue Dec 25, 2024 · 0 comments
Open

GraphQL 查询 subject relations 缺失 #892

Him188 opened this issue Dec 25, 2024 · 0 comments

Comments

@Him188
Copy link

Him188 commented Dec 25, 2024

https://api.bgm.tv/v0/graphql

query BatchGetSubjectQuery {
  s0:subject(id: 407573) {
    relations {
      relation
      subject{id}
      order
    }
  }
}

Actual response

只有一个关联条目 (小说)

{
  "data": {
    "s0": {
      "relations": [
        {
          "relation": 1,
          "subject": {
            "id": 124785
          },
          "order": 0
        }
      ]
    }
  }
}

Expected

Bangumi 网站上有很多: https://bangumi.tv/subject/407573

image

Archive 的数据库里也有很多

{"subject_id":407573,"relation_type":1,"related_subject_id":124785,"order":0}
{"subject_id":407573,"relation_type":1,"related_subject_id":130998,"order":0}
{"subject_id":407573,"relation_type":2,"related_subject_id":302523,"order":0}
{"subject_id":407573,"relation_type":3003,"related_subject_id":470755,"order":1}
{"subject_id":407573,"relation_type":3004,"related_subject_id":481720,"order":1}
{"subject_id":407573,"relation_type":1,"related_subject_id":492033,"order":0}
{"subject_id":407573,"relation_type":3004,"related_subject_id":498336,"order":2}
{"subject_id":407573,"relation_type":3003,"related_subject_id":500572,"order":2}
{"subject_id":407573,"relation_type":3001,"related_subject_id":515413,"order":0}
{"subject_id":407573,"relation_type":3,"related_subject_id":515594,"order":0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant