Open simplenotezy opened 2 years ago
I solved single post language issue with translation. Example:
query getSinglePost {
post(id: "lorem-ipsum", idType: SLUG) {
translation(language: EN) {
title
content
slug
}
}
}
if you want to reach as variable use $language: LanguageCodeEnum!
I hope it helps someone.
if you want to reach as variable use
$language: LanguageCodeEnum!
I hope it helps someone.
Thank you, this made my day!
I believe this repository is missing the ability to specifiy language when fetching a single page/post. E.g.: