milvus-logo
Star
0
Forks
0
Get Started

createPartition()

Create a partition in a collection.

Invocation

new milvusClient(MILUVS_ADDRESS).partitionManager.createPartition(CreatePartitionReq);

Parameter

CreatePartitionReq

ParameterDescriptiontyperequired
collection_nameCollection nameStringtrue
partition_namePartition nameStringtrue

Example

new milvusClient(MILUVS_ADDRESS).partitionManager.createPartition({
  collection_name: 'my_collection',
  partition_name: 'my_partition',
});

Return

// create partition return