我想更新 id 61efc9132321da48f80ed768 的任务名,如何在 Spring Boot 中为相同的任务编写服务,我可以通过 id 更新任何单个任务,
{
"_id":{"$oid":"61efc9132321da48f80ed769"},
"firstName":" xyz",
"lastName":"xyz",
"email":"xyz@gmail.com",
"password":"abc100213",
"tasks":[
{
"taskId":{"$oid":"61efc9132321da48f80ed767"},
"taskName":"change colour",
"taskDescription":"change the color of page",
"taskStatus":"In-Progress"
},
{
"taskId":{"$oid":"61efc9132321da48f80ed768"},
"taskName":"Creating REST API 2",
"taskDescription":"Creating API's with Spring and Mongo",
"taskStatus":"In-Progress"
}
]
}