Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. schema {
  2. query: Query
  3. }
  4.  
  5. type Query {
  6. accounts: AllAccountsConnection!
  7. organizations: AllOrganizationsConnection!
  8. users: AllUsersConnection!
  9. }
  10.  
  11. interface Node {
  12. id: ID!
  13. }
  14.  
  15. interface Edge {
  16. cursor: String!
  17. node: Node!
  18. }
  19.  
  20. interface Collection {
  21. edges: [Edge]!
  22. pageInfo: PageInfo!
  23. }
  24.  
  25. interface Account {
  26. id: ID!
  27. name: String!
  28. }
  29.  
  30. type Organization implements Account {
  31. id: ID!
  32. name: String!
  33. }
  34.  
  35. type User implements Account {
  36. id: ID!
  37. name: String!
  38. }
  39.  
  40. type AllOrganizationsConnection implements Connection {
  41. edges: [AllOrganizationsEdge]!
  42. pageInfo: PageInfo!
  43. }
  44.  
  45.  
  46. type AllOrganizationsEdge implements Edge {
  47. cursor: String!
  48. node: Organization!
  49. }
  50.  
  51. type AllUsersConnection implements Connection {
  52. edges: [AllUsersEdge]!
  53. pageInfo: PageInfo!
  54. }
  55.  
  56. type AllUsersEdge implements Edge {
  57. cursor: String!
  58. node: User!
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement