milvus-logo
LFAI
< Docs
  • Node

showCollections()

List all collections or get collection loading status.

Invocation

new milvusClient(MILUVS_ADDRESS).collectionManager.showCollections(
  ShowCollectionsReq
);

Parameter

ShowCollectionsReq

ParameterDescriptiontyperequired
collection_nameName of the collections to check for their loading statusString arrayFalse
typeShowCollectionsTypeShowCollectionsTypeFalse
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

ShowCollectionsType

valueDescriptiontyperequired
0Allnumbertrue
1Loadednumbertrue

Example

new milvusClient(MILUVS_ADDRESS).collectionManager.showCollections();

Return

// showCollections return
{
  status: { error_code: 'Success', reason: '' },
  data: [
    {
      name: 'my_collection',
      id: '434826867399720961',
      timestamp: '1658732862090',
      loadedPercentage: undefined
    }
  ],
  created_timestamps: [ '434826867399720964' ],
  created_utc_timestamps: [ '1658732862090' ],
}
Feedback

Was this page helpful?