rsnext/examples/with-relay-modern-server-express/server/schema.graphql

37 lines
600 B
GraphQL
Raw Normal View History

type Query {
viewer(after: String, before: String, first: Int, last: Int): Viewer!
node(id: ID!): Node
}
type Viewer implements Node {
id: ID!
allBlogPosts(after: String, before: String, first: Int, last: Int): BlogPostConnection!
}
interface Node {
id: ID!
}
type BlogPostConnection {
pageInfo: PageInfo!
edges: [BlogPostEdge]
}
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: String
endCursor: String
}
type BlogPostEdge {
node: BlogPost!
cursor: String!
}
type BlogPost implements Node {
content: String!
id: ID!
title: String!
}