-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
issue: bugIssue reporting a bugIssue reporting a bugseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solveIf the issue only affects a very niche base of users and an easily implemented workaround can solvesource: core:databaseSource is core/database packageSource is core/database packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community members
Description
Bug report
Describe the bug
When trying to deleteMany by the nested entity filtering, An error occurs.
Steps to reproduce the behavior
- Have eneties A & B.
- Add relation between A & B, and B has many A.
- Execute codes
Expected behavior
All B filtered A will be deleted.
Screenshots
Code snippets
await strapi.query(A).deleteMany({ where: { B: { id: { $eq: params.id }, } } })
System
- Node.js version: V14
- NPM version: 7.22.0
- Strapi version: 4.0.1
- Database: MySql
- Operating system: MacOs Monterey
larbish, c7ming, webmatrixxxl, finfa, NateR42 and 12 more
Metadata
Metadata
Assignees
Labels
issue: bugIssue reporting a bugIssue reporting a bugseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solveIf the issue only affects a very niche base of users and an easily implemented workaround can solvesource: core:databaseSource is core/database packageSource is core/database packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community members
Type
Projects
Status
Fixed/Shipped
