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

Episode canonical title is not nullable in GraphQL #1265

Open
ariesclark opened this issue Jul 9, 2022 · 1 comment
Open

Episode canonical title is not nullable in GraphQL #1265

ariesclark opened this issue Jul 9, 2022 · 1 comment

Comments

@ariesclark
Copy link

This issue is causing me a fair bit of problems when querying for episodes.

@mizaki
Copy link
Contributor

mizaki commented Oct 1, 2023

This is the same with manga and chapters. Example:

query chaptersByMangaId ($id: ID!, $limit: Int, $after: String) {
    findMangaById(id: $id) {
        chapters (first: $limit, after: $after) {
            nodes {
                id
                titles {
                  canonical
                }
            }
        }
    }
}
{"id": 35, "limit": 1, "after": ""}
{
  "data": {
    "findMangaById": {
      "chapters": {
        "nodes": [
          null
        ]
      }
    }
  },
  "errors": [
    {
      "message": "Cannot return null for non-nullable field TitlesList.canonical"
    }
  ]
}

Using preferred also causes "error": "JSON.parse: unexpected character at line 1 column 1 of the JSON data"

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

2 participants