Nestjs: Type does not satisfy the constraint 'Document'
Export Document
from mongoose
then you will have to extend IBranches
interface to Document
. Like below -
import { Document } from 'mongoose';export interface IBranches extends Document{ profileId: string; name: string; location: string;}