spring-projects / spring-projects/spring-data-mongodb
Add a getter for keysToUpdate field in the Update class
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.