It does through query parameters. There are different implementations where you pass ?fields= , or there's also OData implementations. I don't think it's too much code to implement it.
This can be a good approach, but I’ve also seen REST APIs become a shittier ad-hoc version of GraphQL.
This can be a good approach, but I’ve also seen REST APIs become a shittier ad-hoc version of GraphQL.