{
"_id" : ObjectId("60409b54bb80580eb14aebb7"),
"firstName" : "Luna",
"lastName" : "fix",
"phoneNumber" : "323-123-3232",
"email" : "",
"address" : [
{
"street" : "XXXXX"
}
],
"createdAt" : ISODate("2021-03-04T08:33:24.921Z"),
"updatedAt" : ISODate("2021-03-04T08:33:24.921Z"),
"__v" : 0
}
how can i update the ‘street’ value from ‘XXXXX’ to another value?
I’ve tried this and tried looking up online but doesnt help, Please help me.
db.collection.update({_id: ObjectId("60409b54bb80580eb14aebb7")},
{$set: {"address.street": "New Land"}})