I have successfully inserted the following in MongoDB as a string. However, I would like it to be inserted as an objectId.
parentId": "5ced2388dbbbe124d8671067"
This is the parentId stored in string format.
Is there a way to convert it to objectId format?