Skip to content

Support of the Sub-Document operations #1659

Closed
@babltiga

Description

@babltiga

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())));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions