Aspects of gravity in quantum field theory