Commit Graph

6 Commits

Author SHA1 Message Date
Weijie Sun 40413d376a fix: deleteMany respects filters combined with relation (#25420)
* Use query builder init in deleteMany

* test(api): deleteMany respects filters combined with relation

* fix(database): pick filter params in deleteMany init

Apply _q, where, and filters through init like count instead of where-only
or full findMany params, avoiding populate/pagination surprises. Expand API
and unit tests for relation filters, count parity, and ignored param keys.

* chore(database): clarify deleteMany relation cleanup TODO

Replace the vague bulk-query TODO with a concrete note that deleteMany
still skips per-row deleteRelations unlike single delete().

---------

Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2026-05-27 09:42:06 +00:00
Ben Irvin cc6b0c661b fix: use max batch sizes per dialect (#25390) 2026-03-30 09:39:46 +02:00
Jean-Sébastien Herbaux f271284c75 fix(database): improve sub queries handling in the qb (#23129) 2025-03-20 10:31:36 +01:00
Alexandre BODIN 0374b697a7 Update tests/api/core/database/v4-self-ref-compat.test.api.js
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
2024-09-02 17:08:23 +02:00
Alexandre Bodin f16f3878b4 chore: add compat test 2024-09-02 16:15:53 +02:00
Ben Irvin cf82c830d8 test: restructure test dirs 2024-04-02 11:19:43 +02:00