1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-relay-modern-server-express/server/schema.graphql

36 lines
574 B
GraphQL
Raw Normal View History

type Query {
viewer(after: String, before: String, first: Int, last: Int): Viewer!
node(id: ID!): Node
}
type Viewer {
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!
}