diff --git a/test/grpc/Upsert.spec.ts b/test/grpc/Upsert.spec.ts index fa37dfc5..2360fdf8 100644 --- a/test/grpc/Upsert.spec.ts +++ b/test/grpc/Upsert.spec.ts @@ -208,6 +208,9 @@ describe(`Upsert API`, () => { const vectorsData = query.data.map((item: any) => { item.bool = true; item.dynamic_upserted_int32 = 100; + item.$meta.dynamic_varChar = 'test'; + item.dynamic_JSON = { a: 1 }; + item.int32_array = null; return item; }); @@ -235,6 +238,16 @@ describe(`Upsert API`, () => { (item: any) => item.$meta.dynamic_upserted_int32 === 100 ) ).toBeTruthy(); + expect( + query2.data.every((item: any) => item.$meta.dynamic_varChar === 'test') + ).toBeTruthy(); + expect( + query2.data.every((item: any) => item.$meta.dynamic_JSON.a === 1) + ).toBeTruthy(); + // check the int32_array field + expect( + query2.data.every((item: any) => item.int32_array === null) + ).toBeTruthy(); }); it(`Upsert Data on different scalar fields`, async () => {