I’d like to be able to search documents by ID but I can’t for the life of me figure out how to encode a MongoID the same way that one does in PHP:
http://php.net/manual/en/class.mongoid.php
$id = new MongoID($id_str); //This is how it would be in PHP
It’s this