Hello
My
query of
records, summary, keys = driver.execute_query ( query_str , parameters_ = parameters, database_ = db )
returns list of records that are PATH
an example element of the list is in below.
I would like to have a python code snippet how to get start and end labe lnodes of the path and the label of relationship.
I appreciate your help
<Record path=<Path start=<Node element_id='4:4bab0b38-db0b-402b-86d5-25a1c49cb2d7:761' labels=frozenset({'PartRevision', 'ProductRevision'}) properties={'created': neo4j.time.DateTime(2023, 5, 23, 21, 40, 30, 131000000, tzinfo=), '_type': 'ProductRevision', 'masterRef': '#id54', 'accessRefs': '#id13', 'nameRef': '#id1267', 'revision': 'B', 'descriptionTextRef': '#id1268', 'lbl': 'RjVplLIJqd$DyB', 'name': 'CROSSKART_DC', 'subType': 'ItemRevision', 'id': 'id1266', 'updated': neo4j.time.DateTime(2023, 5, 23, 21, 47, 17, 584000000, tzinfo=)}> end=<Node element_id='4:4bab0b38-db0b-402b-86d5-25a1c49cb2d7:791' labels=frozenset({'Deluxe', 'Base', 'Occurrence'}) properties={'associatedAttachmentRefs': '#id1596 #id1603', 'instanceRefs': '#id91', 'created': neo4j.time.DateTime(2023, 5, 23, 21, 40, 57, 335000000, tzinfo=), 'occurrenceRefs': 'id1610', 'lbl': 'xDVplLIJqd$DyB/F1ZplLIJqd$DyB', '_type': 'Occurrence', 'instancedRef': '#id1834', 'id': 'id86', 'sourceRef': '#id90', 'updated': neo4j.time.DateTime(2023, 5, 23, 21, 47, 48, 390000000, tzinfo=), 'parentRef': '#id7'}> size=1> hops=1>