Hello,
I want to make an insert in a Mongo collection.
This insert contains an object table, ‘tva_fac’:
Here is this insert:
Tva.insert({ "tva_abo_id": "000456", "tva_dateOblig": new Date(2017,2,26), "tva_dateregl": new Date(2017,2,26), "tva_fac": new Array( {'numero':'1234765','client':'jean BONNOT - MAIF','montant':39.22,'mntTva':6.43}, {'numero':'1234766','client':'Leslie PANCUIR - MAAF','montant':51.43,'mntTva':8.43}, {'numero':'1234767','client':'Ema TITGOUTTE - SECU','montant':169.26,'mntTva':26.26}) })
Why does this ‘insert’ not work ???
In fact the insert is done but the array of object “tva_fac” is empty. I have tried many syntaxes, but nothing does.
Can anyone get me out of this problem?
Thank you
YC