I've a document with a nested json data. It has 15 text and 10 integer datatypes.
How can I write a query such that any text or integer that matches should be displayed?
I tried the following query but it did not work as expected.
db.customers.find({ sno : /ab/ },{ name : /ab/ }).count()
I'm getting 0 count as result. I'm looking at OR clause and not AND clause.