How do you find documents with a matching item in an embedded array?

  •  db.customers.findmatch ({“jobs”:”secretary”})
  •  db.customers.find ({“jobs:secretary”})
  •  db.customers.find ({“jobs”:[“secretary”]})
  •  db.customers.find ({“jobs”:”secretary”})

Leave a Reply

Your email address will not be published. Required fields are marked *