libmedium/schemas/schema.graphql

88 lines
1.1 KiB
GraphQL
Raw Permalink Normal View History

type Query {
post: Post
}
schema {
2021-11-07 13:22:10 +05:30
query: Query
}
2021-11-07 13:22:10 +05:30
type Paragraphs {
text: String!
type: String!
href: String
layout: String
iframe: IFrame
metadata: MetaData
markups: [MarkUp!]!
}
type MarkUp {
2021-11-07 13:22:10 +05:30
title: String
type: String!
href: String
userId: String
start: Int!
end: Int!
anchorType: String
}
type IFrame {
2021-11-07 13:22:10 +05:30
mediaResource: MediaResource
}
2021-11-07 13:22:10 +05:30
type MediaResource {
href: String!
iframeSrc: String!
iframeWidth: Int!
iframeHeight: Int
}
type MetaData {
2021-11-07 13:22:10 +05:30
id: String!
originalWidth: Int
originalHeight: Int
}
2021-11-07 13:22:10 +05:30
type BodyModel {
paragraphs: [Paragraphs!]!
}
2021-11-07 13:22:10 +05:30
type Content {
bodyModel: BodyModel!
}
type User {
id: String!
name: String!
imageId: String!
username: String!
2021-11-07 13:22:10 +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-11-07 13:22:10 +05:30
type PreviewImage {
id: String
}
2021-11-07 13:22:10 +05:30
type PreviewContent {
subtitle: String!
}
2021-11-07 13:22:10 +05:30
type Data {
post: Post
}
2021-11-07 13:22:10 +05:30
type AutogeneratedMainType {
data: Data
}