accords-library.com/src/graphql/operations/getChronicle.graphql

159 lines
3.6 KiB
GraphQL
Raw Normal View History

query getChronicle($slug: String) {
2022-07-18 00:04:13 +00:00
chronicles(filters: { slug: { eq: $slug } }) {
data {
attributes {
slug
date_start {
year
month
day
}
date_end {
year
month
day
}
chapter {
data {
attributes {
slug
titles {
title
language {
data {
attributes {
code
}
}
}
}
}
}
}
translations {
title
summary
language {
data {
attributes {
code
}
}
}
body {
source_language {
data {
attributes {
code
}
}
}
status
body
authors {
data {
attributes {
username
2022-07-18 00:04:13 +00:00
}
}
}
translators {
data {
attributes {
username
2022-07-18 00:04:13 +00:00
}
}
}
proofreaders {
data {
attributes {
username
2022-07-18 00:04:13 +00:00
}
}
}
}
}
contents {
data {
id
attributes {
slug
categories(pagination: { limit: -1 }) {
data {
attributes {
slug
2022-07-18 00:04:13 +00:00
}
}
}
type {
data {
attributes {
slug
}
}
}
translations(pagination: { limit: -1 }) {
language {
data {
attributes {
code
}
}
}
pre_title
title
subtitle
description
text_set {
status
text
source_language {
data {
attributes {
code
}
}
}
transcribers(pagination: { limit: -1 }) {
data {
id
attributes {
username
2022-07-18 00:04:13 +00:00
}
}
}
translators(pagination: { limit: -1 }) {
data {
id
attributes {
username
2022-07-18 00:04:13 +00:00
}
}
}
proofreaders(pagination: { limit: -1 }) {
data {
id
attributes {
username
2022-07-18 00:04:13 +00:00
}
}
}
notes
}
}
thumbnail {
data {
attributes {
...uploadImage
}
}
}
}
}
}
}
}
}
}