Aspects of quantum gravity in cosmology