title: Nest can't resolve dependencies of the JobsService (?). Please make sure that the argument JobModel at index [0] is available in the AppModule context
body: <p>I'm really confused, I got this weird error and I have no idea.</p>
  <blockquote>
  <p>Error: Nest can't resolve dependencies of the JobsService (?). Please make sure that the argument JobModel at index [0] is available in the AppModule context.</p>
  </blockquote>
  <p>app.module.ts</p>
  <pre class="lang-js prettyprint-override"><code>import { Module } from '@nestjs/common';
  import { AppController } from './app.controller';
  import { AppService } from './app.service';
  import { MongooseModule } from '@nestjs/mongoose';
  import { JobsModule } from './jobs/jobs.module';
  import { JobsService } from './jobs/jobs.service';
  import { JobsController } from './jobs/jobs.controller';
  import config from './config/config';
  
  @Module({
    imports: [JobsModule, MongooseModule.forRoot(config.mongoURI, {
        useFindAndModify: false,
    })],
    controllers: [AppController, JobsController],
    providers: [AppService, JobsService], 
  })
  export class AppModule {}
  </code></pre>
  <p>/jobs/jobs.module.ts</p>
  <pre class="lang-js prettyprint-override"><code>import { Module } from '@nestjs/common';
  import { MongooseModule } from '@nestjs/mongoose';
  import { JobsService } from './jobs.service';
  import { JobsController } from './jobs.controller';
  import { JobsSchema } from './schemas/jobs.schema';
  
  @Module({
    imports: [MongooseModule.forFeature([{ name: 'Job', schema: JobsSchema }])],
    controllers: [JobsController],
    providers: [JobsService],
  })
  export class JobsModule {}
  </code></pre>
  <p>/job/job.controller.ts</p>
  <pre class="lang-js prettyprint-override"><code>import { Controller, Get, Post, Put, Delete, Body, Param } from '@nestjs/common';
  import { JobsService } from './jobs.service';
  import { IJobs } from './interfaces/jobs.interface';
  
  @Controller('jobs')
  export class JobsController {
      constructor(private readonly jobsService: JobsService){}
      
      @Get()
      findAll():Promise&lt;IJobs[]&gt; {
          return this.jobsService.findAll();
      }
  }
  </code></pre>
  <p>/job/jobs.service.ts</p>
  <pre class="lang-js prettyprint-override"><code>import { Injectable } from '@nestjs/common';
  import { InjectModel } from '@nestjs/mongoose';
  import { Model } from 'mongoose';
  import { IJobSchema } from './schemas/jobs.schema';
  import { IJobs } from './interfaces/jobs.interface';
  
  @Injectable()
  export class JobsService {
      constructor(@InjectModel('Job') private readonly JobsModel: Model&lt;IJobSchema&gt;){}
      
      async findAll():Promise&lt;IJobs[]&gt; {
          return await this.JobsModel.find();
      }
  }
  </code></pre>