Mongo Arrays: Get Unconfused

To summarize:

  • To find a search term within an array, use standard search notation.
  • To match an array of search terms against a field, use in.
  • To compare all items in an array of search terms against an array field, use all.

--

--

Software engineer and renaissance man. I love the human side of computing.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Martin (Chaim) Berlove

Martin (Chaim) Berlove

270 Followers

Software engineer and renaissance man. I love the human side of computing.