Mongoose Schema Type with Custom Id

Can we refer other collection in same database with custom id like tracking Id, instead of ObjectId. Its working fine with mongodb genereatd Object Id, But I am looking for solution where we can refer with custom unique id other than object id.

collection1:{type: Schema.Types.ObjectId, ref:‘colection2’}