1+ import currentCategoryQuery from './current-category.query' ;
2+ import currentLegalCategoryQuery from './current-legal-category.query' ;
13import currentLocalisationQuery from './current-localisation.query' ;
24import currentNameQuery from './current-name.query' ;
35import metas from './metas.query' ;
@@ -6,6 +8,8 @@ import officialtextLightQuery from './official-texts.light.query';
68export default [
79 ...metas ,
810 ...currentLocalisationQuery ,
11+ ...currentLegalCategoryQuery ,
12+ ...currentCategoryQuery ,
913 ...currentNameQuery ,
1014 {
1115 $lookup : {
@@ -32,6 +36,7 @@ export default [
3236 _id : 0 ,
3337 id : 1 ,
3438 alternativePaysageIds : { $ifNull : [ '$alternativePaysageIds' , [ ] ] } ,
39+ category : { $ifNull : [ '$category' , { } ] } ,
3540 closureDate : { $ifNull : [ '$closureDate' , null ] } ,
3641 closureOfficialText : { $ifNull : [ '$closureOfficialText' , { } ] } ,
3742 closureOfficialTextId : { $ifNull : [ '$closureOfficialTextId' , null ] } ,
@@ -45,6 +50,7 @@ export default [
4550 descriptionEn : { $ifNull : [ '$descriptionEn' , null ] } ,
4651 descriptionFr : { $ifNull : [ '$descriptionFr' , null ] } ,
4752 exercice : { $ifNull : [ '$exercice' , null ] } ,
53+ legalcategory : { $ifNull : [ '$legalcategory' , { } ] } ,
4854 motto : { $ifNull : [ '$motto' , null ] } ,
4955 netAccountingResult : { $ifNull : [ '$netAccountingResult' , null ] } ,
5056 population : { $ifNull : [ '$population' , null ] } ,
0 commit comments