Issue
- When trying to filter Content Structure ( WebContent > Structures ), and using a wrong syntax, you might get any of the following errors:
-
Exception while fetching data (/contentStructureStructuredContents) : null
-
"Internal Server Error",classification": "DataFetchingException"
-
"contentStructureStructuredContents": null
Environment
- Liferay DXP 7.4
Resolution
- You should use the following template for the request:
{
You can find and edit the structure's field reference when clicking on the text field and opening the “Advanced” tab.
contentStructureStructuredContents(contentStructureId: <yourContentStructureId>, filter: "contentFields/yourStructureFieldReference eq 'yourWebContentTextEntry'") {
items {
id
contentFields {
contentFieldValue {
data
}
label
}
}
}
}
Note: You should change the contentStructureId to your own.
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar