Last active
July 21, 2017 02:27
-
-
Save slightlytyler/a9845c9e89d3af5880f1d772bac01c90 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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