createCollection

abstract suspend fun createCollection(collectionName: String)

Create a new collection with the given name.

Parameters

collectionName

the name for the new collection to create


abstract suspend fun createCollection(collectionName: String, options: CreateCollectionOptions)

Create a new collection with the selected options

Parameters

collectionName

the name for the new collection to create

options

various options for creating the collection


abstract suspend fun createCollection(clientSession: ClientSession, collectionName: String)

Create a new collection with the given name.

Since

3.6

Parameters

clientSession

the client session with which to associate this operation

collectionName

the name for the new collection to create


abstract suspend fun createCollection(    clientSession: ClientSession,     collectionName: String,     options: CreateCollectionOptions)

Create a new collection with the selected options

Since

3.6

Parameters

clientSession

the client session with which to associate this operation

collectionName

the name for the new collection to create

options

various options for creating the collection