|
@@ -230,10 +230,15 @@ class IntelligentDockingService extends CrudService {
|
|
as: 'follow',
|
|
as: 'follow',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- { $unwind: '$company', preserveNullAndEmptyArrays: true },
|
|
|
|
- { $unwind: '$institution', preserveNullAndEmptyArrays: true },
|
|
|
|
- { $unwind: '$finance_claims', preserveNullAndEmptyArrays: true },
|
|
|
|
- { $unwind: '$dictionary', preserveNullAndEmptyArrays: true },
|
|
|
|
|
|
+ { $unwind: { path: '$company', preserveNullAndEmptyArrays: true } },
|
|
|
|
+ { $unwind: { path: '$institution', preserveNullAndEmptyArrays: true } },
|
|
|
|
+ { $unwind: { path: '$finance_claims', preserveNullAndEmptyArrays: true } },
|
|
|
|
+ { $unwind: { path: '$dictionary', preserveNullAndEmptyArrays: true } },
|
|
|
|
+
|
|
|
|
+ // { $unwind: '$company', preserveNullAndEmptyArrays: true },
|
|
|
|
+ // { $unwind: '$institution', preserveNullAndEmptyArrays: true },
|
|
|
|
+ // { $unwind: '$finance_claims', preserveNullAndEmptyArrays: true },
|
|
|
|
+ // { $unwind: '$dictionary', preserveNullAndEmptyArrays: true },
|
|
{ $unwind: { path: '$follow', preserveNullAndEmptyArrays: true } },
|
|
{ $unwind: { path: '$follow', preserveNullAndEmptyArrays: true } },
|
|
{ $project:
|
|
{ $project:
|
|
{
|
|
{
|