I want to fetch URLs from the following collection which status field has only 400 (result must be: b and c). Does someone know any single mongoDB query operator for this?
Collection:
url, status
a, 200
a, 400
b, 400
c, 400
Collection Image:

Result must be:
b, c
How I want above mentioned result?
- Include only 400 status documents
- If URL and status are same then include only single document out of them
- If URL is same and status is different then don't include any out of them