libmedium/schemas/query.graphql

62 lines
1.3 KiB
GraphQL
Raw Normal View History

query GetPost($id: ID!) {
post(id: $id) {
title
createdAt
2021-11-02 21:04:02 +05:30
readingTime
2021-11-07 13:22:10 +05:30
uniqueSlug
creator {
name
id
2021-11-02 13:40:13 +05:30
imageId
username
}
2021-11-07 13:22:10 +05:30
previewImage {
id
}
previewContent {
subtitle
}
content {
bodyModel {
paragraphs {
text
type
href
layout
markups {
title
type
href
userId
start
end
anchorType
}
iframe {
mediaResource {
href
iframeSrc
iframeWidth
iframeHeight
}
}
metadata {
id
originalWidth
originalHeight
}
}
}
}
}
}
query GetPostLight($id: ID!) {
post(id: $id) {
uniqueSlug
creator {
username
}
}
}