Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type CommuterDetailsResponse {
- responseCode: String!
- firstName: String!
- lastName: String!
- address: String
- mobileNumber: Int
- hasPaid: Boolean!
- email: String!
- }
- # This becomes the root Query
- type Query {
- getCommuterInfo(email: String!): CommuterDetailsResponse!
- }
- {
- "query" : "{ getCommuterInfo ( email: "tobi" )
- {
- firstName
- lastName
- }
- }"
- }
- {
- "data": null,
- "errors": [
- {
- "message": "Invalid Syntax",
- "locations": [
- {
- "line": 2,
- "column": 1
- }
- ],
- "errorType": "InvalidSyntax",
- "path": null,
- "extensions": null
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement