Following query is perfectly working in mongo shell.
db.collection.find({ "_id" : UUID("87aa9ed6-8485-4517-8e90-08e521372e9a")})
I want to achieve same programmatically in java. I have tried below approaches but not getting any result.
1) collection.find(eq("_id", "87aa9ed6-8485-4517-8e90-08e521372e9a"));
2) `UUID uuid = UUID.fromString("87aa9ed6-8485-4517-8e90-08e521372e9a");
collection.find(eq("_id", uuid));`
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)