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

Function requestSingle

packages/shared/src/graphql/batch.ts:111–117  ·  view source on GitHub ↗
(item: BatchItem)

Source from the content-addressed store, hash-verified

109};
110
111const requestSingle = async (item: BatchItem): Promise<void> => {
112 try {
113 item.resolve(await gqlClient.request(item.document, item.variables));
114 } catch (error) {
115 item.reject(error);
116 }
117};
118
119// A server without batching answers the array body with a plain object, so the
120// items are retried one by one and the session stops sending arrays.

Callers 1

flushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected