Skip to content

Commit 62cd546

Browse files
committed
chore: add missing overload for insertMany
1 parent 1050856 commit 62cd546

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/io/weaviate/client6/v1/api/collections/data/WeaviateDataClientAsync.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public final CompletableFuture<InsertManyResponse> insertMany(PropertiesT... obj
6666
return insertMany(InsertManyRequest.of(objects));
6767
}
6868

69+
@SafeVarargs
70+
public final CompletableFuture<InsertManyResponse> insertMany(
71+
WeaviateObject<PropertiesT, Reference, ObjectMetadata>... objects) {
72+
return insertMany(Arrays.asList(objects));
73+
}
74+
6975
public CompletableFuture<InsertManyResponse> insertMany(
7076
List<WeaviateObject<PropertiesT, Reference, ObjectMetadata>> objects) {
7177
return insertMany(new InsertManyRequest<>(objects));

0 commit comments

Comments
 (0)