libmedium/schemas/query.graphql

52 lines
1.2 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
}
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
}
}
}
}
}
}