Created
July 1, 2016 13:43
-
-
Save chuck0523/1ad4c82d696051eed01dd22279cd8edc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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