wp-graphql-polylang
wp-graphql-polylang copied to clipboard
Querying for translations on categories causes Internal server error
As the title says, querying translations in categories causes an internal server error.
Query:
{
categories {
nodes {
translations {
id
}
}
}
}
Response:
{
"errors": [
{
"message": "Internal server error",
"category": "internal",
"locations": [
{
"line": 5,
"column": 9
}
],
"path": [
"categories",
"nodes",
0,
"translations",
0,
"id"
]
},
{
"message": "Internal server error",
"category": "internal",
"locations": [
{
"line": 5,
"column": 9
}
],
"path": [
"categories",
"nodes",
1,
"translations",
0,
"id"
]
}
],
"data": {
"categories": {
"nodes": [
{
"translations": [
null
]
},
{
"translations": [
null
]
}
]
}
}
}
Maybe related to? https://github.com/valu-digital/wp-graphql-polylang/issues/15
Try with the GRAPHQL_DEBUG?