DataResponse is the happy path response constructor for a mocked GraphQL request.
(data map[string]any)
| 71 | |
| 72 | // DataResponse is the happy path response constructor for a mocked GraphQL request. |
| 73 | func DataResponse(data map[string]any) GQLResponse { |
| 74 | return GQLResponse{ |
| 75 | Data: data, |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | // ErrorResponse is the unhappy path response constructor for a mocked GraphQL request.\ |
| 80 | // Note that for the moment it is only possible to return a single error message. |
no outgoing calls