umbraco-graphql
umbraco-graphql copied to clipboard
Multi-lingual content and variants
Validate the queries against the new varianted content + rich properties like Nested Content under variants.
Should this be working in the develop branch? I am trying to get all documents by type with items to build the site in Gatsby but it returns only empty fields. The document type and fields allows variants and the domain is configured
{
umbraco {
content {
byType {
home {
items {
_name
_url
heroHeader
}
}
}
}
}
}
Result:
{
"data": {
"umbraco": {
"content": {
"byType": {
"home": {
"items": [
{
"_name": "Home",
"_url": "/en/",
"heroHeader": "Umbraco Demo"
}
]
}
}
}
}
},
"extensions": {}
}
Culture query
{
umbraco {
content {
byType {
home(culture: "sv-SE") {
items {
_name
_url
heroHeader
}
}
}
}
}
}
{
umbraco {
content {
byType {
home(culture: "sv") {
items {
_name
_url
heroHeader
}
}
}
}
}
}
Result:
{
"data": {
"umbraco": {
"content": {
"byType": {
"home": {
"items": []
}
}
}
}
},
"extensions": {}
}