Ticket Projection

static async getMoviesByCountry(countries)
let cursor
try {
cursor = await movies.find({
“countries”: { in:countries}}, {"_id": 0, "title": 1}); } catch (e) { console.error(`Unable to issue find command, {e}`)
return cursor.toArray()

Here is my code to search for movies, the first test passes which searches for one movie however the second one which searches for three does not and I am not sure why? some help?

1 Like

Where are your query operators?

By the way, it’s against forum guidelines to post potential lab solutions.

its there with { $in: countries }

I was missing the word projection and the had “” where they shouldnt be its working now thanks anyway