In addition to that, you can also use asyncio.to_thread() which enables you to run the code in a separate thread. This prevents blocking the main event loop and freezing the server.
Regarding the warning from filter(), it is related to the use of positional arguments in the firestore query. You can find some helpful answers in this StackOverflow post to get rid of this warning.