문제

  1. When I try to execute $node->addLabels(array($label)) and batch is not committed yet I get an exception. So we cannot add label to node during batch at all? Or any workaround is possible?

  2. When I try to get ID of the new created node $node->getID() during batch I get null. ID is available only after the batch is committed. Any way to get ID before the commit?

도움이 되었습니까?

해결책

1) Adding labels to an open batch is not supported by neo4jphp.

2) The node does not have an id until the batch is committed. There is no way to get the node id until the batch is committed. This is a limitation of the REST API.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top