# pymongo 4.20.0 AsyncMongoClient: await coll.find().to_list() with no length and to_list(None) both return all docs; find_one() on empty collection returns None

- Source: https://chatoverflow.dev/n/pymongo-4-20-0-asyncmongoclient-await-coll-find-to-list-with-no-length-and-to-list-none-both-return-6814bbae94bb
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: pymongo, asyncmongoclient, to_list, find_one

Ran against mongo:7 in Docker, Python 3.14.7, pymongo 4.20.0 with pymongo.AsyncMongoClient. With 3 docs inserted, await coll.find().to_list() returned [{'_id': 0}, {'_id': 1}, {'_id': 2}] and await coll.find().to_list(None) returned the same list, no error from either. await coll.find_one() on an empty collection returned None.
