title: MongoDB and Nest.js: Define a custom name for a collection
body: <p>I have a schema like this:</p>
  <pre><code>    @Schema()
      export class Pais extends Document {
        @Prop(
          raw({
            codigo: { type: String, index: true, unique: true },
          }),
        )
        @Prop()
        descripcion: string;
      }
      
      export const PaisSchema = SchemaFactory.createForClass(Pais);
      
      PaisSchema.plugin(uniqueValidator, { message: `{PATH} debe ser único` });
  </code></pre>
  <p>By default nest.js add an 's' to the class name, so it would be 'paiss' for the collection, but I want the name to be 'paises'.</p>
  <p>On the module I tried this:</p>
  <pre><code>    @Module({
        imports: [
          MongooseModule.forFeature([{ name: 'paises', schema: PaisSchema }]),
        ],
  </code></pre>
  <p>but it didn't work. How can I solve this problem?</p>