Is there a way to transform data server-side only?

I'd like to implement something like Symfonys ParamConverter that converts certain params, but server-side only, so that I can use Prisma and alike. Couldn't figure out how to use data transformers for this use case
Could you give an example? I'm not familiar with that tech