Closed
Description
Are there any plans to support the Sub-Document operations? In most of cases, the updates on the documents are partial so users can benefit from using Sub-Document mutations.
So something like this can be achieved without using Collections directly.
@Repository
public interface AirlineRepository extends CouchbaseRepository<Airline, String> {
@MutateOnly({"name"})
void upsert(Airline airline);
}
which is equivalent of
couchbaseTemplate.getCollection("airline")
.mutateIn(airline.getId(), Collections.singletonList(upsert("name", airline.getName())));