However if running in a batch mode, I got RuntimeException:
public BatchRestResult recordBatch(RestAPI restApi) {
BatchRestResult result = new BatchRestResult();
RestNode userNode = restApi.getOrCreateNode(restApi.index().forNodes("user-id"),
"user-id", user.getUserId(), null);
java.lang.RuntimeException: Error retrieving or creating node for key user-id and value +972548172847 with index user-id
at org.neo4j.rest.graphdb.ExecutingRestAPI.getOrCreateNode(ExecutingRestAPI.java:448)
at org.neo4j.rest.graphdb.RestAPIFacade.getOrCreateNode(RestAPIFacade.java:223)
The following code segment works fine if calling from RestAPI directly.
However if running in a batch mode, I got RuntimeException: