Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Ponte75
Contributor
Contributor

MongoDB Output - Create an array field even if i have only one element

Hello everyone, sorry for my english that is not so good.

I need you presciuos help for loading into MongoDB an array field.

The Jsonn Tree is like this :

0695b00000lvxsxAAA.png

here is my result :

0695b00000lvxxYAAQ.png

Labels (3)
3 Replies
Ponte75
Contributor
Contributor
Author

the field ESAMI is created as an array only if i write more values of field ESAMI. i'd like to write it always an array (even with only one value). is it possible?

Anonymous
Not applicable

Hello @Milvio Stizzo​ ,

To achieve it, you can right click the 'ESAMI' node -> Add Attribute 'class' -> right click the 'class' node to 'Set a fixed value' 'array' like the below

0695b00000lw4VMAAY.pngBest regards

Aiming

 

Ponte75
Contributor
Contributor
Author

hello. thanks a lot. here is the result ; the component create nasted array 🙂

0695b00000lw5XxAAI.png