This is the database collection - Job:
{
"skillsRequired": ["html", "css", "javascript"],
"qualification": [ "BE", "B-Tech"],
"company" : "microsoft"
},
{
"skillsRequired": ["html", "ml", "ai", "python"],
"qualification": [ "BE", "B-Tech"],
"company" : "microsoft"
},
{
"skillsRequired": ["ml", "ai", "python"],
"qualification": [ "BE", "B-Tech"],
"company" : "microsoft"
}
How can I get the following output when parameter is "skillsRequired" : ["html", "css"]
[{
"skillsRequired": ["html", "css", "javascript"],
"qualification": [ "BE", "B-Tech"],
"company" : "microsoft"
},
{
"skillsRequired": ["html", "ml", "ai", "python"],
"qualification": [ "BE", "B-Tech"],
"company" : "microsoft"
}]
In short, the query should return all the records/documents in which any one of the elements in parameter query matches with that of the document.