Maybe that's a good reason to avoid GraphQL then?
Now you get into the issues of tracing, request failures and retries, payload size (only json? really..) etc.
But I do agree that a super optimized sql for a a specific purpose has it's performance benefit