rsnext/examples/with-relay-modern-server-express/server/schema.graphql
Diogo Dutra a996fba09c Added a new example with relay modern and a graphql server with express. (#4670)
* Added a new example with relay modern and a graphql server with express.

* removed .graphqlconfig file from with-relay-modern-server-express example
2018-12-10 16:50:35 +01:00

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