flat-fuchsia
flat-fuchsia22h ago

afterDelete hook not reading url query

I'm trying to pass an Id via query to an afterDelete lifecycle hook but is not working and always return undefined in strapi console log. I have tried with ctx.request.query but keep returning can not read query of type undefined. What is the method of reading queries in a lifecycle hook strapi v5
2 Replies
kapa.ai
kapa.ai22h ago
Hi @bogdand2011. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources provided do not contain information about Strapi v5 lifecycle hooks or how to access query parameters (such as in an afterDelete hook). The sources focus on the Refine framework and its integration with data providers, routing, and related hooks, but do not cover Strapi's internal lifecycle methods or request handling. If you have a question about using Refine with Strapi, or about Refine's data hooks and how they interact with APIs, please let me know! Otherwise, for Strapi-specific lifecycle hook issues, I recommend consulting the official Strapi documentation or community resources. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai22h ago
<@1050096218518339645> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?