2021-10-31 15:12:49 +05:30
|
|
|
type Query {
|
|
|
|
post: Post
|
|
|
|
}
|
|
|
|
|
|
|
|
schema {
|
2021-11-07 13:22:10 +05:30
|
|
|
query: Query
|
2021-10-31 15:12:49 +05:30
|
|
|
}
|
|
|
|
|
2021-11-07 13:22:10 +05:30
|
|
|
type Paragraphs {
|
|
|
|
text: String!
|
|
|
|
type: String!
|
|
|
|
href: String
|
|
|
|
layout: String
|
|
|
|
iframe: IFrame
|
|
|
|
metadata: MetaData
|
|
|
|
markups: [MarkUp!]!
|
2021-10-31 15:12:49 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
type MarkUp {
|
2021-11-07 13:22:10 +05:30
|
|
|
title: String
|
|
|
|
type: String!
|
|
|
|
href: String
|
|
|
|
userId: String
|
|
|
|
start: Int!
|
|
|
|
end: Int!
|
|
|
|
anchorType: String
|
2021-10-31 15:12:49 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
type IFrame {
|
2021-11-07 13:22:10 +05:30
|
|
|
mediaResource: MediaResource
|
2021-10-31 15:12:49 +05:30
|
|
|
}
|
|
|
|
|
2021-11-07 13:22:10 +05:30
|
|
|
type MediaResource {
|
|
|
|
href: String!
|
|
|
|
iframeSrc: String!
|
|
|
|
iframeWidth: Int!
|
|
|
|
iframeHeight: Int
|
2021-10-31 15:12:49 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
type MetaData {
|
2021-11-07 13:22:10 +05:30
|
|
|
id: String!
|
|
|
|
originalWidth: Int
|
|
|
|
originalHeight: Int
|
2021-10-31 15:12:49 +05:30
|
|
|
}
|
|
|
|
|
2021-11-07 13:22:10 +05:30
|
|
|
type BodyModel {
|
|
|
|
paragraphs: [Paragraphs!]!
|
|
|
|
}
|
2021-10-31 15:12:49 +05:30
|
|
|
|
2021-11-07 13:22:10 +05:30
|
|
|
type Content {
|
|
|
|
bodyModel: BodyModel!
|
|
|
|
}
|
|
|
|
|
|
|
|
type User {
|
|
|
|
id: String!
|
|
|
|
name: String!
|
|
|
|
imageId: String!
|
|
|
|
}
|
2021-10-31 15:12:49 +05:30
|
|
|
|
2021-11-07 13:22:10 +05:30
|
|
|
type Post {
|
|
|
|
id: ID!
|
|
|
|
readingTime: Float!
|
|
|
|
title: String!
|
|
|
|
createdAt: Int!
|
|
|
|
content: Content!
|
|
|
|
creator: User!
|
|
|
|
previewImage: PreviewImage
|
|
|
|
previewContent: PreviewContent
|
|
|
|
uniqueSlug: String!
|
|
|
|
}
|
2021-10-31 15:12:49 +05:30
|
|
|
|
2021-11-07 13:22:10 +05:30
|
|
|
type PreviewImage {
|
|
|
|
id: String
|
|
|
|
}
|
2021-10-31 15:12:49 +05:30
|
|
|
|
2021-11-07 13:22:10 +05:30
|
|
|
type PreviewContent {
|
|
|
|
subtitle: String!
|
2021-10-31 15:12:49 +05:30
|
|
|
}
|
|
|
|
|
2021-11-07 13:22:10 +05:30
|
|
|
type Data {
|
|
|
|
post: Post
|
|
|
|
}
|
2021-10-31 15:12:49 +05:30
|
|
|
|
2021-11-07 13:22:10 +05:30
|
|
|
type AutogeneratedMainType {
|
|
|
|
data: Data
|
|
|
|
}
|