None of those are automatic. Any API you write still has to remember to put in LIMIT clauses, to avoid OFFSET. And then you have to actually write the API rather than have it generated for you.
There are no free lunches, especially with regard to security and sanity checks.
And you can both put queries on an allow list, control max query depth, and/or throttle on query cost.