MongoDB newbie here. I have a collection with multiple documents in it. All documents have similar fields.
I want to implement a single search function to find any document if any of the fields in that document matches the keyword.
For example, if I have documents that have fields
middle_name and I search for “John”, if any of the previously mentioned fields contain “John” (it can be Johnathan, Johnny, John, etc.) to return that document.