2024-06-26 01:45:04 +00:00
|
|
|
type Query {
|
|
|
|
post(id: ID!): Post!
|
2024-06-27 01:28:18 +00:00
|
|
|
posts(first: ID!, after: ID): PostsConnection!
|
2024-06-26 01:45:04 +00:00
|
|
|
comment(id: ID!): Comment!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Post {
|
|
|
|
id: ID!
|
|
|
|
title: String!
|
|
|
|
author: String!
|
|
|
|
contents: String!
|
2024-06-27 01:28:18 +00:00
|
|
|
comments(first: ID!, after: ID): CommentsConnection!
|
2024-06-26 01:45:04 +00:00
|
|
|
allowComments: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Comment {
|
|
|
|
id: ID!
|
|
|
|
author: String!
|
|
|
|
contents: String!
|
2024-06-27 01:28:18 +00:00
|
|
|
replies(first: ID!, after: ID): CommentsConnection!
|
2024-06-26 01:45:04 +00:00
|
|
|
}
|