mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
a996fba09c
* Added a new example with relay modern and a graphql server with express. * removed .graphqlconfig file from with-relay-modern-server-express example
36 lines
574 B
GraphQL
36 lines
574 B
GraphQL
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!
|
|
}
|