Doc:
{ _id: 5150a1199fac0e6910000002, name: \'some name, items: [{ id: 23, name: \'item name 23\' },{ id: 24, name: \'ite
Use $pull to remove the data
$pull
return this.mobiledashboardModel .update({"_id": args.dashboardId}, { $pull: {"viewData": { "_id": widgetId}}}) .exec() .then(dashboardDoc => { return { result: dashboardDoc } });