#Hi, Is there a way to overwrite metatype?

1 messages · Page 1 of 1 (latest)

wind perch
#

I want to set dto class in interceptor dynamically based on route parameter

scarlet marten
#

short answer: i don't think so
but you can implement a custom pipe to read the route parameter and dinamically choose the DTO, and then just apply it to your controller