Hi there!
I've been going through the tutorial and I have figured out how to search and return values from a database collection, but I'd like to be able to search any column. I can only figure out how to search one column (as that's all the tutorials provide as examples). How would I search all columns in the table and return information for a row that has the searched term in any column?
I need to replace the "Product" (the column being searched) in the following line with a value that will search any column, not just the product column.
return '{"Product":{"$regex":"^'+value+'", "$options":"i"}}';
Thanks in advance!