This is not related to mongo query. I was familiar with SQL and used Studio3T IDE to query a mongo database using SQL. If you are one like me, I want to point out that the id value needs to be typecasted.
So the query will look like:
SELECT _id from
WHERE _id = ObjectId("5883d387971bb840b7399130");