MCPcopy Index your code
hub / github.com/subquery/subql / onModuleInit

Method onModuleInit

packages/query/src/graphql/graphql.module.ts:65–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 async onModuleInit(): Promise<void> {
66 if (!this.httpAdapterHost) {
67 return;
68 }
69 try {
70 this._apolloServer = await this.createServer();
71 } catch (e: any) {
72 throw new Error(`create apollo server failed, ${e.message}`);
73 }
74 }
75
76 async schemaListener(dbSchema: string, options: PostGraphileCoreOptions): Promise<void> {
77 // In order to apply hotSchema Reload without using apollo Gateway, must access the private method, hence the need to use set()

Callers

nothing calls this directly

Calls 1

createServerMethod · 0.95

Tested by

no test coverage detected