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

Add `@Meta(resolver = …)` attribute to customize `Meta` resolutions

Open
#4,810 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

In the discussion of potential solutions for #4808, one idea was to add a resolver attribute to the @Meta annotation that could…

  • either take a SpEL expression returning a fully populated Meta instance to be used for the query execution
  • or refer to a named bean implementing a dedicated interface MetaResolver.resolve(RepositoryMethodContext) so that implementations get access to the full method

I guess both could be supported at the same time, but we might end up adding only one of the options.

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.

Research direction

The issue points to discussion #4808 and the @Meta annotation, but names no files or tests. Start by reading #4808 and tracing Meta resolution in repository query execution; completion would require choosing and defining the supported resolver approach, including how the SpEL option or MetaResolver.resolve(RepositoryMethodContext) is handled.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb, spring
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.