https://kotlinlang.org logo
#ktor
Title
# ktor
m

manlan

06/23/2020, 5:17 AM
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?