You cannot update _id field directly with update
It is a primary key in mongodb
Check dba stackexchange forum where they discuss adding new row with your required set value and deleting old row
You cannot update _id field directly with update
It is a primary key in mongodb
Check dba stackexchange forum where they discuss adding new row with your required set value and deleting old row