Skip to content

Use of arrayFilters in @Update in mongo repository #4705

Open
@andersonfaria-hotmart

Description

@andersonfaria-hotmart

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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions