Trying to find a document by ObjectId in mongoose. The query returns an empty result but when applying the same query in the "MongoDB Compass" - it returns the document.

```
const mongoose = require("mongoose");

await CollectionModel.find({ "_id": new mongoose.Types.ObjectId(DOCUMENT_ID)});

```

[![MongoDB Compass](https://i.stack.imgur.com/iDzfk.png)](https://i.stack.imgur.com/iDzfk.png)

What are the possible reasons for the issue?

Note: searching with other properties except the "\_id" works fine.