2022-07-23 10:24:13 +02:00

123 lines
2.7 KiB
GraphQL

query getWikiPage($slug: String, $language_code: String) {
wikiPages(filters: { slug: { eq: $slug } }) {
data {
id
attributes {
slug
thumbnail {
data {
attributes {
...uploadImage
}
}
}
categories(pagination: { limit: -1 }) {
data {
id
attributes {
name
short
}
}
}
tags {
data {
id
attributes {
slug
titles(filters: { language: { code: { eq: $language_code } } }) {
title
}
}
}
}
translations(pagination: { limit: -1 }) {
title
aliases {
alias
}
summary
language {
data {
attributes {
code
}
}
}
body {
source_language {
data {
attributes {
code
}
}
}
status
body
authors(pagination: { limit: -1 }) {
data {
id
attributes {
...recorderChip
}
}
}
translators(pagination: { limit: -1 }) {
data {
id
attributes {
...recorderChip
}
}
}
proofreaders(pagination: { limit: -1 }) {
data {
id
attributes {
...recorderChip
}
}
}
}
}
definitions(pagination: { limit: -1 }) {
source {
data {
attributes {
...source
}
}
}
categories(pagination: { limit: -1 }) {
data {
id
attributes {
name
short
}
}
}
translations(pagination: { limit: -1 }) {
language {
data {
attributes {
code
}
}
}
source_language {
data {
attributes {
code
}
}
}
status
definition
}
}
}
}
}
}