How do I properly structure my code when using a d...
# ktor
m
How do I properly structure my code when using a database? e.g. MongoDB and how do I use them in conjunction with coroutines? Currently, I'm accessing the mongodb client in each route handler and wrapping the query in a coroutine. I'm not sure if this is the correct way.
Anyone please?