Issue
I'm using Spring Data with MongoDB using MongoRepository.
I was wondering if it is possible do a delete by filter using query annotation. I have been looking here and google and I cannot find any documentation.
Solution
@Query(value="{'id' : $0}", delete = true)
public Person deleteById (String id);
Answered By - Marcelo Pasut
Answer Checked By - Candace Johnson (JavaFixing Volunteer)