Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created July 1, 2016 13:43
Show Gist options
  • Save chuck0523/1ad4c82d696051eed01dd22279cd8edc to your computer and use it in GitHub Desktop.
Save chuck0523/1ad4c82d696051eed01dd22279cd8edc to your computer and use it in GitHub Desktop.
schema {
query: Query
}
type Job implements Node {
id: ID!
name: String
salary: Int
}
type JobConnection {
pageInfo: PageInfo!
edges: [JobEdge]
}
type JobEdge {
node: Job
cursor: String!
}
interface Node {
id: ID!
}
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: String
endCursor: String
}
type Query {
node(id: ID!): Node
chuck: User
}
type User implements Node {
id: ID!
name: String
jobs(after: String, first: Int, before: String, last: Int): JobConnection
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment