0
Considering the following structure:
{
"_id" : ObjectId("5ad69abb3630404194c80571"),
"cnpj" : 2352345234523452,
"razao_social" : "Lalala Ltda.",
"fantasia" : " "aiufhdiua Ltda.",
"dt_criacao" : ISODate("2018-04-18T01:09:15.076Z"),
"usuarios" : [ ],
"sensores" : [
{
"id" : 1,
"leituras" : [ ]
},
{
"id" : 2,
"leituras" : [ ]
}
]
}
How do I update this document with the document below in the field only sensores.id:2
?
{ "latitude": 45.435435, "longitude": 120.09345493 }
Thanks in advance!
It worked out! Thank you!
– Leandro Missel