From the console, I can work as db.test.update ({name: 'abc'}, {$ pull: {'child': {'age': 10}}}.
How to code using spring -data-mongodb in Java for this instruction? I got mongoTemplate. I know that I need to call Update.pull (). But I do not know the details.
Thanks for your reply.
source
share