You can use the exclude() method to filter out records where a certain field is not equal to a certain value.