22 lines
400 B
GraphQL
22 lines
400 B
GraphQL
|
type Query {
|
||
|
post(id: ID!): Post!
|
||
|
posts(first: ID!, after: ID!): PostsConnection!
|
||
|
comment(id: ID!): Comment!
|
||
|
}
|
||
|
|
||
|
type Post {
|
||
|
id: ID!
|
||
|
title: String!
|
||
|
author: String!
|
||
|
contents: String!
|
||
|
comments(first: ID!, after: ID!): CommentsConnection!
|
||
|
allowComments: Boolean!
|
||
|
}
|
||
|
|
||
|
type Comment {
|
||
|
id: ID!
|
||
|
author: String!
|
||
|
contents: String!
|
||
|
replies(first: ID!, after: ID!): CommentsConnection!
|
||
|
}
|