Types for ctx.query in custom controller appear to be broken #20230
Labels
issue: bug
Issue reporting a bug
severity: medium
If it breaks the basic use of the product but can be worked around
source: typescript
Source is related to TypeScript (typings, tooling, ...)
status: confirmed
Confirmed by a Strapi Team member or multiple community members
version: 5
Bug report
Required System information
Describe the bug
Attempting to play around with custom controllers in Strapi 5 I was attempting to set a custom
ctx.query
and noticed that type errors are being thrown around the structure of ctx.querySteps to reproduce the behavior
ctx.query
Expected behavior
No breaking changes were recorded for the object based populate syntax thus this was valid in Strapi 4 and should also be valid in Strapi 5
Screenshots
Code snippets
Route:
Controller:
Schema:
Additional context
N/A
The text was updated successfully, but these errors were encountered: