I am trying to find a record in my mongo db by its id
No matter I use findbyid(), findone(id,...), it return null
here is my code. what is the solution?
In my case, the imported file used to have the _id column as string, so it was messing the DB and I was no able to filter using that column.
Once I deleted the collection, removed the _id column from data file and re-imported it, the _id filtering started working fine.