# GraphQLModule Class

Module
import { GraphQLModule } from "@tsed/graphql"
Source/packages/graphql/src/GraphQLModule.ts

# Overview

class GraphQLModule implements OnInit, AfterListen {
<span class="token keyword">constructor</span><span class="token punctuation">(</span>injector<span class="token punctuation">:</span> <a href="/api/di/services/InjectorService.html"><span class="token">InjectorService</span></a><span class="token punctuation">,</span> graphQLService<span class="token punctuation">:</span> <a href="/api/graphql/services/GraphQLService.html"><span class="token">GraphQLService</span></a><span class="token punctuation">,</span> configuration<span class="token punctuation">:</span> <a href="/api/di/decorators/Configuration.html"><span class="token">Configuration</span></a><span class="token punctuation">)</span><span class="token punctuation">;</span>
$<span class="token function">onInit</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> Promise&lt;<span class="token keyword">any</span>&gt; | <span class="token keyword">void</span><span class="token punctuation">;</span>
$<span class="token function">afterListen</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> Promise&lt;<span class="token keyword">any</span>&gt; | <span class="token keyword">void</span><span class="token punctuation">;</span>

}