Crie modelo obejctid Mongoose
const schema = new Schema({ userCurrencyId:{type: mongoose.Schema.Types.ObjectId,
index: true,
required: true,
auto: true});
Huy Nguyen