<@U4KLLCLQH> It is an object which happens to be a...
# getting-started
c
@Marcus Fihlon It is an object which happens to be an instance of
KClass
. Try this:
Copy code
inline fun <reified T : Any> createCollection(): MongoCollection<T> {
	val client = KMongo.createClient()
	val database = client.getDatabase("test")
	return database.getCollection<T>()
}

// Usage example:
createCollection<MyObject>()