milvus-logo
LFAI
< Docs
  • Python

has_collection()

This method checks if a collection exists.

Invocation

has_collection(collection_name, using='default')

Parameters

ParameterDescriptionTypeRequired
collection_nameName of the collection to check.StringTrue
usingMilvus connection used to check the collection.StringFalse

Return

Boolean value that indicates if the collection exists.

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?