Создайте модель Obejctid mongoose
const schema = new Schema({ userCurrencyId:{type: mongoose.Schema.Types.ObjectId,
index: true,
required: true,
auto: true});
Huy Nguyen