getCollection

expect fun getCollection(name: String): Collection?(source)

Get a collection in the default scope by name. If the collection doesn't exist, the function will return null.

Return

the named collection or null

Parameters

name

the collection to find


expect fun getCollection(collectionName: String, scopeName: String?): Collection?(source)

Get a collection in the specified scope by name. If the collection doesn't exist, the function will return null.

Return

the named collection or null

Parameters

collectionName

the collection to find

scopeName

the scope in which to create the collection

actual fun getCollection(name: String): Collection?(source)
actual fun getCollection(collectionName: String, scopeName: String?): Collection?(source)
actual fun getCollection(name: String): Collection?(source)
actual fun getCollection(collectionName: String, scopeName: String?): Collection?(source)