Describe the issue:
- We have various locales and blocks that are localised. When querying, we make sure to query per locale so that we get the appropriate links. An example:
fragment YItemPage on DatoCmsYItemPage {
xyz
}
query YQuery {
deAT: allYItemPage(locale: "de-AT", filter: {locales: {eq: "de-AT"}, slug: {ne: "null"}}) {
nodes {
...YItemPage
}
}
deCH: allYItemPage(locale: "de-CH", filter: {locales: {eq: "de-CH"}, slug: {ne: "null"}}) {
nodes {
...YItemPage
}
}
deDE: allYItemPage(locale: "de-DE", filter: {locales: {eq: "de-DE"}, slug: {ne: "null"}}) {
nodes {
...YItemPage
}
}
enIE: allYItemPage(locale: "en-IE", filter: {locales: {eq: "en-IE"}, slug: {ne: "null"}}) {
nodes {
...YItemPage
}
}
}
As of today, that GraphQL is consistently returning inconsistent results. Where sometimes it says that the content of a localized block is empty, and others it does not… When we confirm by going to Dato CMS Dashboard, we see the block in context does have all localised references.
- If this has to do with your website, what framework and version are you using (Next.js, Astro, Svelte, etc.)?
- Gatsby
- React
(Recommended) What’s the URL of the record or model in question?
- Full query and error has been emailed to support@datocms.com with title “Inconsistent GraphQL results happening as of today.”