import { Module } from '@nestjs/common'; import { PostCommentsService } from './post-comments.service'; import { PostCommentsController } from './post-comments.controller'; import { MongooseModule } from '@nestjs/mongoose'; import { Comment, CommentSchema } from '../schemas/post-comment.schema'; @Module({ imports: [ MongooseModule.forFeature([{ name: Comment.name, schema: CommentSchema }]), ], controllers: [PostCommentsController], providers: [PostCommentsService], }) export class PostCommentsModule {}