Added querying ability for getAll repository method.