[ ] Regression (a behavior that stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Documentation issue or request
Current behavior
I have created a schema (single content) “Homepage” and another one “header-call-to-action-description-image” (component). The “homepage” schema contains a component field “Header” (localizable) I added the component.
The GraphQL query loks like this: { queryHomepageContents { data { title {iv} content {iv} header { de { callToActionLabel callToActionUrl description image { url } } } } } }
It works in the embedded GraphiQL client. But property “de” is defined as a scalar in the schema. This isn’t correct, right? The Client in my .NET Project produces the error message: “SS0002 de returns a scalar value. Selections on scalars or enums are never allowed, because they are the leaf nodes of any GraphQL query.”
I’ve tried to add the component non- localizable but the resulting iv has the same problem.
I have never had complaints about that before. Which client do you use?
Edit: I think the error message is not about the “en” field, but about the content or header field, but I don’t know why it things that this is scalar. Can you upload your schema/introspection somewhere? Check the network calls in the browser for that. The file could be relatively big.