MCPcopy Create free account
hub / github.com/subquery/subql / insertMetadata

Function insertMetadata

packages/query/src/graphql/graphql.test.ts:38–42  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

36 });
37
38 async function insertMetadata(key: string, value: string) {
39 await pool.query(`INSERT INTO subquery_1._metadata(
40 key, value, "createdAt", "updatedAt")
41 VALUES ('${key}', '${value}', '2021-11-07 07:02:31.768+00', '2021-11-07 07:02:31.768+00');`);
42 }
43
44 async function createApolloServer() {
45 const builder = await getPostGraphileBuilder(pool, [dbSchema], {

Callers 1

graphql.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected