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

Use of arrayFilters in @Update in mongo repository #4705

Open
andersonfaria-hotmart opened this issue May 22, 2024 · 1 comment
Open

Use of arrayFilters in @Update in mongo repository #4705

andersonfaria-hotmart opened this issue May 22, 2024 · 1 comment
Assignees
Labels
type: enhancement A general enhancement

Comments

@andersonfaria-hotmart
Copy link

It'd be nice to execute all update options in update repositories like:

@Query("{}")
@Update("{${'$'}set: {'productDetails.${'$'}[elem].isExcluded': false}}, {arrayFilters: [{'elem.id': ?0}]}")
suspend fun deleteProductDetailById(productId: String): Int

But mongo repositories seems to not recognize arrayFilters.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 22, 2024
@christophstrobl christophstrobl self-assigned this May 23, 2024
@christophstrobl christophstrobl added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels May 23, 2024
@christophstrobl
Copy link
Member

Thank you @andersonfaria-hotmart for bringing this up - would be a nice enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants