47 lines
890 B
GraphQL
47 lines
890 B
GraphQL
query getPostsPreview {
|
|
posts(filters: { hidden: { eq: false } }) {
|
|
data {
|
|
id
|
|
attributes {
|
|
slug
|
|
date {
|
|
...datePicker
|
|
}
|
|
categories(pagination: { limit: -1 }) {
|
|
data {
|
|
id
|
|
attributes {
|
|
short
|
|
}
|
|
}
|
|
}
|
|
thumbnail {
|
|
data {
|
|
attributes {
|
|
...uploadImage
|
|
}
|
|
}
|
|
}
|
|
translations(pagination: { limit: -1 }) {
|
|
language {
|
|
data {
|
|
attributes {
|
|
code
|
|
}
|
|
}
|
|
}
|
|
title
|
|
excerpt
|
|
thumbnail {
|
|
data {
|
|
attributes {
|
|
...uploadImage
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|