We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2ed8ce commit b35bb40Copy full SHA for b35bb40
astra-db-client/src/test/java/com/dtsx/astra/sdk/AstraDBTestSuiteIT.java
@@ -528,6 +528,18 @@ public void shouldFindAndExistsAndNotEquals() {
528
andCriteriaList.add(criteria2);
529
existAndNotEquals.setFilter(Map.of("$and", andCriteriaList));
530
Assertions.assertEquals(2, collectionVector.find(existAndNotEquals).count());
531
+
532
+ SelectQuery query2 = SelectQuery.builder().withJsonFilter("{" +
533
+ "\"$and\":[" +
534
+ " {" +
535
+ "\"product_price\": {\"$exists\":true}" +
536
+ "}," +
537
+ "{" +
538
+ "\"product_price\":{\"$ne\":9.99}}]" +
539
+ "}")
540
+ .build();
541
+ Assertions.assertEquals(2, collectionVector.find(query2).count());
542
543
}
544
545
// ----------------------------------------
0 commit comments