why doesnt fastapi return my mongodb objects?
So I am trying to make a request on the route: http://127.0.0.1:8000/testadmins with the folowing function: @app.get("/testadmins/") async def get_admins(): return await get_database() get_database() is this: async def get_database(): uri = "(my mongo uri)" client = MongoClient(uri, server_api=ServerApi('1')) adms =…