Can't find and update record from MongoDB(nest js)
userId in database: userId:"610405b8f3e5fb0484f5fac2" I want to update tha data by that Id,but getting 500Internal Server Error.I am trying in this way: service.ts public async updateUser( UserId: any, data: any ): Promise<any | Error> { try { return new Promise((resolve,…