<code>$all</code> operator query

Report a typo

Imagine that you are an HR in an IT company in search of a candidate with skills in JavaScript and Python.

Write a request that would return applicants like Emily Chen from the collection candidates:

{
  _id: ObjectId("6151b4cfe06573f1d2f4b4a4"),
  name: "John Smith",
  age: 32,
  skills: ["Java", "Python", "SQL"]
},
{
  _id: ObjectId("6151b4cfe06573f1d2f4b4a5"),
  name: "Jane Doe",
  age: 28,
  skills: ["Python", "Ruby", "C++"]
},
{
  _id: ObjectId("6151b4cfe06573f1d2f4b4a6"),
  name: "David Lee",
  age: 40,
  skills: ["Java", "C#", "PHP"]
},
{
  _id: ObjectId("6151b4cfe06573f1d2f4b4a7"),
  name: "Emily Chen",
  age: 25,
  skills: ["Python", "JavaScript", "HTML"]
}
Enter a short text
___

Create a free account to access the full topic