createCollection

Create a named collection in the default scope. If the collection already exists, the existing collection will be returned.

Return

the named collection in the default scope

Parameters

name

the scope in which to create the collection

Throws


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

Create a named collection in the specified scope. If the collection already exists, the existing collection will be returned.

Return

the named collection in the default scope

Parameters

collectionName

the name of the new collection

scopeName

the scope in which to create the collection

Throws

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