Closed rohitjain00 closed 4 years ago
Okay, I understood the problem here the data inserted in the database was in SNAKE_CASE
while the data inserted was in lowerCamelCase
I've corrected the problem in https://github.com/rohitjain00/SIH-farmerPortal-backend/commit/c0977c763688a587a63d55d3053f5072ba52207b
The
find()
method returns all occurrences in the selection.The
find_one()
method returns the first occurrence in the selection.