mongodb: update string field to integer
As per MongoDB documentation here From the Documents tab in MongoDB Compass, you can view, insert, clone, modify, and delete documents .

First you have to connect your mongod with MongoDB Compass then you shall able to change your  desire data type of their respective field in MongoDB.

Change Field Type

You can change the data type of a field by using the data type selectors on the right of the field.

 


  Note: Creating, deleting, editing and cloning documents is not permitted in MongoDB Compass Readonly Edition.


For your further ref here