Why does custom dql not support mutation?

Can you please explain your use case, may be there is some other way to achieve that?