Yeah but then you’ve basically just remade REST, but the queries are stored in the frontend instead.
It doesn't work if you don't have control over the client (eg: exposing to third parties), in which case query complexity limits are easy to implement and do the job, too.