( client: Client, servicePath: string, body: types.ExecuteGraphqlRequest, )
| 13 | }); |
| 14 | } |
| 15 | export async function executeGraphQL( |
| 16 | client: Client, |
| 17 | servicePath: string, |
| 18 | body: types.ExecuteGraphqlRequest, |
| 19 | ): Promise<ClientResponse<types.GraphqlResponse | types.GraphqlResponseError>> { |
| 20 | const res = await client.post< |
| 21 | types.ExecuteGraphqlRequest, |
| 22 | types.GraphqlResponse | types.GraphqlResponseError |
| 23 | >(`${servicePath}:executeGraphql`, body, { resolveOnHTTPError: true }); |
| 24 | return res; |
| 25 | } |
| 26 | |
| 27 | export async function executeGraphQLRead( |
| 28 | client: Client, |
no outgoing calls
no test coverage detected
searching dependent graphs…