spring-projects / spring-projects/spring-data-mongodb

Add a getter for keysToUpdate field in the Update class

Open
#4,588 0 comments 1 reaction 1 assignee View on GitHub

@christophstrobl is already working on this.

Since Sep 9, 2024.

type: enhancement
Dominant language
Java
Stars
1.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am currently preforming field level authentication via an ABAC policy, and want support for allowing certain users to update certain fields. The Update class is a good syntactic sugar class but currently I can use it as I can't validate the fields being updated.

Alternatively it would be nice (not sure if possible) to "stage" the update and return the result POJO(s), that would result in the update being applied and then the document being loaded into memory through, for example, findById

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.