Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support hint resolving from parameters #4762

Open
ivansenic opened this issue Aug 7, 2024 · 1 comment
Open

Support hint resolving from parameters #4762

ivansenic opened this issue Aug 7, 2024 · 1 comment
Labels
status: pending-design-work Needs design work before any code can be developed type: enhancement A general enhancement

Comments

@ivansenic
Copy link

Currently we cannot specify hint both using @Query or @Hint annotation that could be resolving the value from parameters. For example, The following should work:

@Query(
        value = "{ something: ?0}",
        hint = "?1"
)
@Hint
Flux<Somthing> findSomething(String something, String hint);

This is working for @Query.value, but as well for @Query.collation (see docs) and not for the hint.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 7, 2024
@mp911de mp911de added type: enhancement A general enhancement status: pending-design-work Needs design work before any code can be developed and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 12, 2024
@mp911de
Copy link
Member

mp911de commented Aug 12, 2024

Thanks for your request. Care to provide a bit more details for us, why and how you're using different hints? Exposing hints to the caller side this leaks MongoDB details to places that we actually do not want to deal with database-(implementation)specific values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pending-design-work Needs design work before any code can be developed type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants