- Modifiche a ProductInfo... Continua

This commit is contained in:
Surya Paolo
2025-08-29 23:34:37 +02:00
parent 5d8e38fea6
commit 4f4297ca21
77 changed files with 3830 additions and 1281 deletions

View File

@@ -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',