Mongodb вставка документа без поля _id

Я новичок в Mongodb.

I need to insert a doc without the _id field generating automatically.

I need to set the field Tenant_id as unique or need to change the "_id" field to Tenant_id.

как это сделать?

что-то вроде этого

     Tenant
        {Tenant_id: 123, Tenant_info: ...}

Ответы на вопрос(5)

Ваш ответ на вопрос