I'm struggling to perform partial queries on my MongoDB database. Specifically, I want the database to return results when I enter a partial input in a search box. For instance, if I have users with names like "Paul, Patrick, Pablo, Pantaleon, etc", I want MongoDB to find and display results when I type "pa" into the search box. I'm unsure of the syntax required to achieve this, as using model.Find({name:""}) only returns exact matches...
Any assistance on how to accomplish this would be greatly appreciated!