File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
astra-db-java/src/test/java/com/datastax/astra/test/unit Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 17
17
import com .datastax .astra .client .model .InsertOneResult ;
18
18
import com .datastax .astra .client .model .NamespaceInformation ;
19
19
import com .datastax .astra .client .model .NamespaceOptions ;
20
+ import com .datastax .astra .client .model .Projection ;
20
21
import com .datastax .astra .client .model .Projections ;
21
22
import com .datastax .astra .client .model .ReplaceOneOptions ;
22
23
import com .datastax .astra .client .model .SimilarityMetric ;
@@ -275,6 +276,13 @@ void shouldTOverrideMaximumLimits() {
275
276
DataAPIOptions options = DataAPIOptions .builder ()
276
277
.withMaxDocumentsInInsert (100 )
277
278
.build ();
279
+
280
+ Projection p1 = new Projection ("field1" , true );
281
+ Projection p2 = new Projection ("field2" , true );
282
+ FindOptions options1 = FindOptions .Builder .projection (p1 ,p2 );
283
+ FindOptions options2 = FindOptions .Builder .projection (Projections .include ("field1" , "field2" ));
284
+
285
+ InsertManyOptions insertManyOptions = InsertManyOptions .Builder .chunkSize (100 );
278
286
//DataAPIClient client = new DataAPIClient("token", options);
279
287
280
288
}
You can’t perform that action at this time.
0 commit comments