ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / common / org.litote.kmongo.coroutine.CoroutineDatabase / getOrCreateCollection

getOrCreateCollection

suspend fun <reified T : Any> CoroutineDatabase.getOrCreateCollection(collectionName: String): CoroutineCollection<T>

Create a mongo collection if not exist and return it