58 lines
1.1 KiB
GraphQL

query getPost($slug: String) {
posts(filters: { slug: { eq: $slug } }) {
data {
id
attributes {
slug
updatedAt
date {
...datePicker
}
authors(pagination: { limit: -1 }) {
data {
id
attributes {
username
}
}
}
categories(pagination: { limit: -1 }) {
data {
attributes {
slug
}
}
}
hidden
thumbnail {
data {
attributes {
...uploadImage
}
}
}
translations(pagination: { limit: -1 }) {
language {
data {
attributes {
code
}
}
}
status
title
excerpt
thumbnail {
data {
attributes {
...uploadImage
}
}
}
body
}
}
}
}
}