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

Function createApolloServer

packages/query/src/graphql/limit.test.ts:36–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 });
35
36 async function createApolloServer() {
37 const builder = await getPostGraphileBuilder(pool, [dbSchema], {
38 replaceAllPlugins: plugins,
39 subscriptions: true,
40 dynamicJson: true,
41 });
42
43 const schema = builder.buildSchema();
44
45 return new ApolloServer({
46 schema,
47 context: {
48 pgClient: pool,
49 },
50 });
51 }
52
53 afterAll(async () => {
54 await pool.end();

Callers 1

limit.test.tsFile · 0.70

Calls 1

buildSchemaMethod · 0.80

Tested by

no test coverage detected