Updated repository method to use query transforms.