milvus-logo
LFAI
< Docs
  • Node

createPartition()

This method creates a partition in a specified collection.

Invocation

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

Parameters

CreatePartitionReq

ParameterDescriptionTypeRequired
collection_nameName of the collection to create a partition inStringTrue
partition_nameName of the partition to createStringTrue

Example

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

Return

{ error_code: 'Success', reason: '' }
Feedback

Was this page helpful?