milvus-logo

hasPartition()

This method verifies if a partition exists in the specified collection.

Invocation

new milvusClient(MILUVS_ADDRESS).partitionManager.hasPartition(HasPartitionReq);

Parameters

HasPartitionReq

ParameterDescriptionTypeRequired
collection_nameName of the collection in which the partition to verify existsStringTrue
partition_nameName of the partition to verifyStringTrue
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

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

Return

{ status: { error_code: 'Success', reason: '' }, value: true }