Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. type CommuterDetailsResponse {
  2. responseCode: String!
  3. firstName: String!
  4. lastName: String!
  5. address: String
  6. mobileNumber: Int
  7. hasPaid: Boolean!
  8. email: String!
  9. }
  10.  
  11.  
  12. # This becomes the root Query
  13. type Query {
  14. getCommuterInfo(email: String!): CommuterDetailsResponse!
  15. }
  16.  
  17. {
  18. "query" : "{ getCommuterInfo ( email: "tobi" )
  19. {
  20. firstName
  21. lastName
  22. }
  23. }"
  24.  
  25. }
  26.  
  27. {
  28. "data": null,
  29. "errors": [
  30. {
  31. "message": "Invalid Syntax",
  32. "locations": [
  33. {
  34. "line": 2,
  35. "column": 1
  36. }
  37. ],
  38. "errorType": "InvalidSyntax",
  39. "path": null,
  40. "extensions": null
  41. }
  42. ]
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement