MCPcopy Create free account
hub / github.com/IsaacInsoll/PICR / createTestGraphqlClient

Function createTestGraphqlClient

tests/api/testGraphqlClient.ts:7–16  ·  view source on GitHub ↗
(headers: HeadersInit)

Source from the content-addressed store, hash-verified

5import { testUrl } from './testVariables';
6
7export const createTestGraphqlClient = async (headers: HeadersInit) => {
8 return new Client({
9 url: testUrl + 'graphql',
10 suspense: true,
11 exchanges: [fetchExchange],
12 fetchOptions: () => {
13 return { headers };
14 },
15 });
16};
17
18export const getUserHeader = async (credentials: ICredentials) => {
19 const client = await createTestGraphqlClient({});

Calls

no outgoing calls

Tested by 2

getVideoFileFunction · 0.72
createLinkUserFunction · 0.72