MCPcopy Index your code
hub / github.com/parse-community/parse-server / gqlRequest

Function gqlRequest

spec/vulnerabilities.spec.js:3021–3028  ·  view source on GitHub ↗
(query, headers = gqlHeaders)

Source from the content-addressed store, hash-verified

3019 }
3020
3021 async function gqlRequest(query, headers = gqlHeaders) {
3022 const response = await fetch(`http://localhost:${gqlPort}/graphql`, {
3023 method: 'POST',
3024 headers,
3025 body: JSON.stringify({ query }),
3026 });
3027 return { status: response.status, body: await response.json().catch(() => null) };
3028 }
3029
3030 afterEach(async () => {
3031 if (httpServer) {

Callers 1

Calls 1

fetchFunction · 0.70

Tested by

no test coverage detected