I\'m trying to find a record within MongoDB, and filter _id from the result.
_id
Here is my code:
#app.py @app.route(\'/login\', methods = [
You need to specify the field you want to return using projection.
data = db.author.find_one({'email' : email, 'password' : password}, {'_id': 1})