Skip to content

Instantly share code, notes, and snippets.

@slightlytyler
Last active July 21, 2017 02:27
Show Gist options
  • Save slightlytyler/a9845c9e89d3af5880f1d772bac01c90 to your computer and use it in GitHub Desktop.
Save slightlytyler/a9845c9e89d3af5880f1d772bac01c90 to your computer and use it in GitHub Desktop.
schema {
query: Query
}
type Query {
accounts: AllAccountsConnection!
organizations: AllOrganizationsConnection!
users: AllUsersConnection!
}
interface Node {
id: ID!
}
interface Edge {
cursor: String!
node: Node!
}
interface Collection {
edges: [Edge]!
pageInfo: PageInfo!
}
interface Account {
id: ID!
name: String!
}
type Organization implements Account {
id: ID!
name: String!
}
type User implements Account {
id: ID!
name: String!
}
type AllOrganizationsConnection implements Connection {
edges: [AllOrganizationsEdge]!
pageInfo: PageInfo!
}
type AllOrganizationsEdge implements Edge {
cursor: String!
node: Organization!
}
type AllUsersConnection implements Connection {
edges: [AllUsersEdge]!
pageInfo: PageInfo!
}
type AllUsersEdge implements Edge {
cursor: String!
node: User!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment