static async getMoviesByCountry(countries) {
/**
Ticket: Projection
Write a query that matches movies with the countries in the "countries"
list, but only returns the title and _id of each movie.
Remember that in MongoDB, the $in operator can be used with a list to
match one or more values of a specific field.
*/
let cursor
try {
// TODO Ticket: Projection
// Find movies matching the "countries" list, but only return the title
// and _id. Do not put a limit in your own implementation, the limit
// here is only included to avoid sending 46000 documents down the
// wire.
cursor = await movies.find({country:{$all: countries}},{projection:{title:1}}).limit(1)
} catch (e) {
console.error(`Unable to issue find command, ${e}`)
return []
}
return cursor.toArray()
}