I am using GraphQL API of tmdb but I can't get any result from my genre-related queries.
This is how i get the id of each genre:
query {
genres {
all {
edges {
node {
id
name
}
}
}
}
}
And here is a sample query I try:
query {
genres {
genre (id: "NToyOA==") {
discover {
movies {
latest {
edges {
node {
id
title
tagline
rating
}
}
}
}
}
}
}
}
But I always get this error:
"errors": [
{
"message": "The resource you requested could not be found. (-34)",
"path": {
"elements": [
"genres",
"genre"
]
},
"locations": [
{
"column": 5,
"line": 3
}
]
}
]
}
Am I doing something wrong? How can I get the movies by genre with GraphQL?
找不到电影或节目?登录并创建它吧。
Travis Bell 的回复
于 2023 年 04 月 01 日 5:52下午
We don’t offer a GraphQL API so I’m not sure if anyone here can help you.
canyapalak 的回复
于 2023 年 04 月 01 日 6:46下午
Thanks for your answer. There is a website where you can make GraphQL queries for TMDB database. I thought it was also provided by you.
Travis Bell 的回复
于 2023 年 04 月 01 日 8:38下午
What website is that?
bhensley 的回复
于 2023 年 05 月 10 日 11:28下午
I have a test site working with v3, and i'm trying to test out v4 and can't get anything to work. Been using ChatGPT to help me come up to speed on some syntax and... its been awesome the last few months. But all the examples it gives me on v4 is using GraphQL.