Search for a keyword through all the fields in a collection

I think the easiest way would just have db.collection.find({$or: [{first_name: “John”}, {last_name: “John”}, {middle_name: “John”}, ]})