What is the best way to achieve this on a document?
I am trying to delete “experience2”
I am using Python.
Many thanks!!
Document at start:
{
"ref": Ref(Collection("users"), "340265987143106639"),
"ts": 1660761862170000,
"data": {
"account": {
"usertype": "Engineering Talent",
},
"profile": {
"photo": "photo_url",
"phone": "12312312",
},
"experience": {
"experience1": {
"title": "Staff Engineer",
"type": "Full-Time",
},
"experience2": {
"title": "Staff Engineer",
"type": "Full-Time",
},
},
"date": Time("2022-08-17T18:43:02.542151Z")
}
}
Document after change:
{
"ref": Ref(Collection("users"), "340265987143106639"),
"ts": 1660761862170000,
"data": {
"account": {
"usertype": "Engineering Talent",
},
"profile": {
"photo": "photo_url",
"phone": "12312312",
},
"experience": {
"experience1": {
"title": "Staff Engineer",
"type": "Full-Time",
}
},
"date": Time("2022-08-17T18:43:02.542151Z")
}
}