diff --git a/client/src/pages/collections/Types.ts b/client/src/pages/collections/Types.ts index 38327f25..92a5ff43 100644 --- a/client/src/pages/collections/Types.ts +++ b/client/src/pages/collections/Types.ts @@ -119,7 +119,7 @@ export interface CreateFieldsProps { } export interface InsertDataParam { - partition_names: string[]; + partition_name: string; // e.g. [{vector: [1,2,3], age: 10}] fields_data: any[]; } diff --git a/client/src/pages/partitions/Partitions.tsx b/client/src/pages/partitions/Partitions.tsx index 78364436..887e3579 100644 --- a/client/src/pages/partitions/Partitions.tsx +++ b/client/src/pages/partitions/Partitions.tsx @@ -138,7 +138,7 @@ const Partitions: FC<{ fieldData: any[] ): Promise<{ result: boolean; msg: string }> => { const param: InsertDataParam = { - partition_names: [partitionName], + partition_name: partitionName, fields_data: fieldData, }; try {