MCPcopy Create free account
hub / github.com/hashintel/hash / createContext

Function createContext

apps/hash-api/src/seed-data/import-supply-chain-dataset.ts:137–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135};
136
137const createContext = (): ImpureGraphContext<true> => {
138 const graphApi = createGraphClient(logger, {
139 host: getRequiredEnv("HASH_GRAPH_HTTP_HOST"),
140 port: Number.parseInt(getRequiredEnv("HASH_GRAPH_HTTP_PORT"), 10),
141 });
142
143 const uploadProvider = setupStorageProviders(express(), getEnvStorageType());
144
145 return {
146 graphApi,
147 provenance,
148 uploadProvider,
149 };
150};
151
152const resolveTargetWebId = async (
153 context: ImpureGraphContext<true>,

Calls 4

createGraphClientFunction · 0.90
getRequiredEnvFunction · 0.90
setupStorageProvidersFunction · 0.90
getEnvStorageTypeFunction · 0.90

Tested by

no test coverage detected