documentation
documentation copied to clipboard
[Request]: Missing core action examples in controllers / services customization docs
Summary
Current examples for customizing controllers and services are only showing how to call the core actions for each findOne(), find(), update(), create() and delete() actions, such as:
async find(params) {
// some logic here
const { results, pagination } = await super.find(params);
// some more logic
return { results, pagination };
}
That is definitely good to know, but I am lacking the code of all the core actions (for both controllers and services) in case I need to somehow rewrite them, or just understand how they work.
Can you please add these - just like we had it in V3?
Why is it needed?
- To be able to utilize the original controller / service code in case we are rewriting the controller / service action
- To be able to better understand controller / service actions
Suggested solution(s)
No response
Related issue(s)/PR(s)
No response