How to auto generate Object_id in document db?

Hi Team,

I have migrated AWS RDS MySQL database to AWS Document DB, data were successfully migrated, But when i find the document db collections id shows like 1,2,3,…. etc. I want to generate auto generated random id. is this possible? if yes how to do that.

I have refer on blog it says it’s not possible to generate object id, Please refer the below link.

azure - Identity Column in DocumentDB - Stack Overflow

How to achieve that someone give me hand to over come the issue.

Hi @KRISHNAKUMAR_K,

Seems your question is related to Document DB and not MongoDB. I would recommend asking this on Stack Overflow or an AWS product community.

Regards,
Jason