MCPcopy Create free account
hub / github.com/emwalker/digraph / fetch

Method fetch

client/src/FetcherBase.ts:23–34  ·  view source on GitHub ↗
(request: RequestParameters, variables: Variables)

Source from the content-addressed store, hash-verified

21 }
22
23 async fetch(request: RequestParameters, variables: Variables) {
24 const { headers } = this
25
26 const response = await fetch(this.url, {
27 method: 'POST',
28 headers,
29 body: JSON.stringify({ query: request.text, variables }),
30 credentials: 'include',
31 })
32
33 return response.json()
34 }
35}
36
37export default FetcherBase

Callers 1

createEnvironmentFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected