Skip to content

Commit

Permalink
updated Java driver
Browse files Browse the repository at this point in the history
  • Loading branch information
rashtao committed Dec 9, 2024
1 parent d681b62 commit 18ac900
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ class ArangoClient(options: ArangoDBConf) extends Logging {
val response = arangoDB.execute(request, classOf[RawBytes])

import scala.collection.JavaConverters.asScalaIteratorConverter
val errors = serde.parse(response.getBody.get).iterator().asScala
.zip(serde.parse(data.get).iterator().asScala)
val errors = serde.parse(response.getBody.get, "/").iterator().asScala
.zip(serde.parse(data.get, "/").iterator().asScala)
.filter(_._1.has("error"))
.filter(_._1.get("error").booleanValue())
.map(it => (
Expand Down
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
<dependency>
<groupId>com.arangodb</groupId>
<artifactId>arangodb-java-driver-shaded</artifactId>
<version>7.9.0</version>
<version>7.15.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -478,4 +478,17 @@
</plugins>
</build>

<repositories>
<repository>
<id>arangodb-snapshots</id>
<url>https://oss.sonatype.org/content/groups/staging</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>

</project>

0 comments on commit 18ac900

Please sign in to comment.