milvus-logo
LFAI
< Docs
  • Node

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

Example

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

Return

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

Was this page helpful?