Can we use spring data repository to update embedded documents in mongodb

Can we use spring data repository to update embedded documents in mongodb

Can we use spring data repository to update embedded documents in mongodb

Can we use spring data repository to update embedded documents in mongodb

    {
    "_id" : 1000,
    "user_id" : "001",
    "events" : [
            {
                    "handled" : 1,
                    "profile" : 10,
                    "data" : "....."
            }
            {
                    "handled" : 1,
                    "profile" : 10,
                    "data" : "....."
            }
            {
                    "handled" : 1,
                    "profile" : 20,
                    "data" : "....."
            }
            ...
       ]
}

I want to update the handle to 10 where events.profile is 10. I know how to do it using mongoTemplate but i need to know how to do it using mongoRepository. Thanks

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Build Web App Authentication using Spring Boot, Spring Security, MongoDB and Angular 8

In this article, you'll learn how to build web application authentication using Spring Boot, Spring Security, MongoDB, and Angular 8

Build a Reactive App with Spring Boot and MongoDB

This tutorial shows how to build a non-blocking, reactive app with Spring Boot, Spring WebFlux, and MongoDB

Building a simple Slack Bot using Spring Boot and MongoDB

Step by step tutorial of building a simple Slack Bot using Spring Boot and MongoDB as a worker