- Modifiche a ProductInfo... Continua
This commit is contained in:
@@ -48,14 +48,14 @@ export default defineComponent({
|
||||
preserveNullAndEmptyArrays: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
/*{
|
||||
$lookup: {
|
||||
from: 'productinfos',
|
||||
localField: 'product.idProductInfo',
|
||||
foreignField: '_id',
|
||||
as: 'productInfo',
|
||||
},
|
||||
},
|
||||
},*/
|
||||
{
|
||||
$unwind: {
|
||||
path: '$productInfo',
|
||||
@@ -109,10 +109,10 @@ export default defineComponent({
|
||||
$group: {
|
||||
_id: '$product._id',
|
||||
name: {
|
||||
$first: '$productInfo.name',
|
||||
$first: '$product.productInfo.name',
|
||||
},
|
||||
weight: {
|
||||
$first: '$productInfo.weight',
|
||||
$first: '$product.productInfo.weight',
|
||||
},
|
||||
price_acquistato: {
|
||||
$first: '$product.price_acquistato',
|
||||
|
||||
Reference in New Issue
Block a user