createIndex

expect fun createIndex(name: String, index: Index)(source)

Deprecated

Use defaultCollection.createIndex()

Replace with

defaultCollection.createIndex(name, index)

Add an index to the default collection.

Parameters

name

index name

index

index description

Throws


expect fun createIndex(name: String, config: IndexConfiguration)(source)

Deprecated

Use defaultCollection.createIndex()

Replace with

defaultCollection.createIndex(name, config)

Add an index to the default collection.

Parameters

name

index name

config

index configuration

Throws

actual fun createIndex(name: String, index: Index)(source)

Deprecated

Use defaultCollection.createIndex()

Replace with

defaultCollection.createIndex(name, index)

actual fun createIndex(name: String, config: IndexConfiguration)(source)

Deprecated

Use defaultCollection.createIndex()

Replace with

defaultCollection.createIndex(name, config)
actual fun createIndex(name: String, index: Index)(source)

Deprecated

Use defaultCollection.createIndex()

Replace with

defaultCollection.createIndex(name, index)

actual fun createIndex(name: String, config: IndexConfiguration)(source)

Deprecated

Use defaultCollection.createIndex()

Replace with

defaultCollection.createIndex(name, config)