Guest User

Untitled

a guest
Dec 16th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. schema {
  2. query: RootQueryType
  3. mutation: RootMutationType
  4. }
  5.  
  6. type RootQueryType {
  7. currentUser: CurrentUser
  8. billing: Billing
  9. }
  10.  
  11. type RootMutationType {
  12. registerUser(email: String!, invitationToken: String, password: String!): CurrentUser
  13. registerCompany(name: String!): Company
  14. resetPassword(password: String!, resetPasswordToken: String!): CurrentUser
  15. login(email: String!, password: String!): CurrentUser
  16. logout: CurrentUser
  17. updateBilling(input: UpdateBillingInput!): Billing
  18. }
  19.  
  20. type CurrentUser {
  21. id: ID
  22. authToken: String
  23. firstName: String
  24. lastName: String
  25. email: String
  26. mobile: String
  27. isOwner: Boolean
  28. company: Company
  29. }
  30.  
  31. type Company {
  32. id: ID
  33. name: String
  34. }
  35.  
  36. type Billing {
  37. trialDaysLeft: Int
  38. plan: BillingPlan
  39. card: Card
  40. nextPaymentDue: String
  41. }
  42.  
  43. enum BillingPlan {
  44. FREE
  45. SOLO
  46. TEAM
  47. }
  48.  
  49. type Card {
  50. lastFourDigits: String
  51. type: String
  52. }
Add Comment
Please, Sign In to add comment