Under the hood finddoes more or less what you describe with where. You can find the details in this post . At the same time, if you want to capture one record by id, you can use find_one. What findends when you call it with a single id argument, but you will skip all the other codes that you need to execute to figure out what you wanted.
source
share