dgraph4j v25.0.0 Released #9672
mlwelles
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
dgraph4j v25.0.0
This is a major release of the Dgraph Java client, bringing full parity with the Dgraph v25 API. It adds new APIs for RunDQL, ID allocation, and namespace management, a typed exception hierarchy with automatic retry support, and convenience methods for common schema and data operations.
What's Changed
New APIs:
allocateUIDs(),allocateTimestamps(),allocateNamespaces()createNamespace(),dropNamespace(),listNamespaces()dropAll(),dropData(),dropPredicate(),dropType(),setSchema()All methods available on both
DgraphAsyncClient(returningCompletableFuture<T>) andDgraphClient(sync wrapper).Typed Exception Hierarchy:
All exceptions now extend
DgraphException(which extendsStatusRuntimeException), withisRetryable()on every subclass. Existingcatch (StatusRuntimeException e)blocks continue to work.Automatic Retry:
withRetry()on bothDgraphClientandDgraphAsyncClientprovides managed transaction retry with exponential backoff, configurable viaRetryPolicywith support for read-only and best-effort transactions.Other changes:
hypermodeinctodgraph-ioclientStubFromSlashEndpoint/clientStubFromCloudEndpoint(now throwUnsupportedOperationExceptionwith migration guidance)isJwtExpired()to handleUNKNOWNstatus codeInstall / Upgrade
implementation 'io.dgraph:dgraph4j:25.0.0'<dependency><groupId>io.dgraph</groupId><artifactId>dgraph4j</artifactId><version>25.0.0</version></dependency>The package is available now on Maven Central.
Full changelog: https://github.com/dgraph-io/dgraph4j/releases/tag/v25.0.0
Beta Was this translation helpful? Give feedback.
All reactions