ozon-task/graph/schema/query.graphqls

22 lines
397 B
GraphQL
Raw Normal View History

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!
}