Skip to main content

NumberArrayId

A primary-key ID list given as numbers.

typescript
export interface NumberArrayId {
int_id: NumberArray;
}

FIELDS:

  • int_id (NumberArray) -

    The numeric primary key values.

Example​

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

const milvusClient = new MilvusClient({
address: 'YOUR_CLUSTER_ENDPOINT',
token: 'YOUR_CLUSTER_TOKEN',
});

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

console.log(res.IDs); // NumberArrayId, e.g. { int_id: { data: [1] } }
Minimum SDK versionv3.0.x
Was this page helpful?