MCPcopy Create free account
hub / github.com/dailydotdev/apps / withoutRequestKey

Function withoutRequestKey

packages/shared/src/graphql/common.ts:249–258  ·  view source on GitHub ↗
(
  headers: Parameters<typeof gqlClient.request>[2],
)

Source from the content-addressed store, hash-verified

247});
248
249const withoutRequestKey = (
250 headers: Parameters<typeof gqlClient.request>[2],
251): Parameters<typeof gqlClient.request>[2] => {
252 if (!headers || Array.isArray(headers) || !('requestKey' in headers)) {
253 return headers;
254 }
255
256 const { requestKey, ...rest } = headers as Record<string, string>;
257 return rest;
258};
259
260export const gqlRequest: typeof gqlClient.request = (
261 document,

Callers 1

gqlRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected