# MongooseModule Class

Module
import { MongooseModule } from "@tsed/mongoose"
Source/packages/mongoose/src/MongooseModule.ts

# Overview

class MongooseModule implements AfterRoutesInit {
<span class="token keyword">constructor</span><span class="token punctuation">(</span>platformApplication<span class="token punctuation">:</span> <a href="/api/common/platform/services/PlatformApplication.html"><span class="token">PlatformApplication</span></a><span class="token punctuation">,</span> mongooseService<span class="token punctuation">:</span> <a href="/api/mongoose/services/MongooseService.html"><span class="token">MongooseService</span></a><span class="token punctuation">)</span><span class="token punctuation">;</span>
$<span class="token function">afterRoutesInit</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">void</span><span class="token punctuation">;</span>
$<span class="token function">onDestroy</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>

}