StringArrayId

A primary-key ID list given as strings.

export interface StringArrayId {
  str_id: StringArray;
}

FIELDS:

  • str_id (StringArray) -

    The string primary key values.

Example

import { MilvusClient } from '@zilliz/milvus2-sdk-node';

const milvusClient = new MilvusClient({
    address: 'localhost:19530',
    token: 'root:Milvus',
});

const res = await milvusClient.insert({
    collection_name: 'my_collection',
    data: [{ id: 'a1', vector: [0.1, 0.2, 0.3, 0.4] }],
});

console.log(res.IDs); // StringArrayId, e.g. { str_id: { data: ['a1'] } }

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?