我要填充productId和分配器。 以下是我的架构中的数组:
products: [
{
productId: {
type: String,
required: true,
ref: 'companyProduct'
},
quantity: {
type: String,
required: true,
},
distributor: {
type: String,
required: true,
ref: 'distributor'
}
}
],