cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Neo4j python

How to Match and execute apoc procedures using python

2 REPLIES 2

12kunal34
Graph Fellow

simple create your query and store it in variable then run session.run(query)

eg.:

query_build = ''' MATCH p = (n:LABEL{name:'Kunal'})-[*]->()
                  with collect(p) as path
                  CALL apoc.convert.toTree(path) yield value
                  RETURN value'''
tree_json = session.run(query_build)`

Thank you so much.I got it