Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-lingual content and variants #64

Open
mzajkowski opened this issue Feb 9, 2021 · 1 comment
Open

Multi-lingual content and variants #64

mzajkowski opened this issue Feb 9, 2021 · 1 comment

Comments

@mzajkowski
Copy link

Validate the queries against the new varianted content + rich properties like Nested Content under variants.

@artcups
Copy link

artcups commented Feb 11, 2021

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": {}
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants