neo4j-rest-client icon indicating copy to clipboard operation
neo4j-rest-client copied to clipboard

Adding label to node in a batch-based transaction causes exception

Open weikai-booodl opened this issue 10 years ago • 1 comments

Hi,

Test code as below

    tx = db.transaction()
    node = db.nodes.create()
    node.labels.add("Test")
    tx.commit()

The line node.labels.add will raise an exception like AttributeError: 'function' object has no attribute 'add'. I was wondering whether it is a bug or simply not supported.

weikai-booodl avatar Mar 19 '14 00:03 weikai-booodl

Unfortunately, labels support in batch-based transactions is not supported yet.

versae avatar Mar 19 '14 03:03 versae