Query the repository not the record