hello,
I have been on this subject for sometime now, my query test using jupyter notebook shows successful, but when i add the code on the db.py, i will have "Projection: The return from the api was incorrect when searching by country" using the status page on the browser to validate but on the console debug state it will return a value of “200” >>> 127.0.0.1 - - [16/Nov/2019 22:43:12] “GET /api/v1/movies/countries?countries=Australia HTTP/1.1” 200 - <<<< confirming successful
Please I need help on the solution.
Here is my syntax
countries = [countries]
countries = db.movies.find({“countries”: {"$in": countries }}, { “title”: 1 })
for results in countries:
** return (results)**
return list(db.movies.find().limit(1))