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.

Is there a way to set a parameter to export GraphML procedures?

Hey all,

I can't to pass a param to cypher query below in (export GraphML procedures):

WITH "MATCH path = (person:Person)-[directed:DIRECTED]->(movie) where id(person) = $personId
RETURN person, directed, movie" AS query
CALL apoc.export.graphml.query(query, null, {stream: true,params:{personId:0}})
YIELD file, nodes, relationships, properties, data
RETURN file, nodes, relationships, properties, data;

I tried also the procedure for export JSON and it works

CALL apoc.export.json.query('(person:Person)-[directed:DIRECTED]->(movie) where id(person) = $personId, null,{stream: true,params:{personId:0}})
YIELD file, nodes, relationships, properties, data
RETURN file, nodes, relationships, properties, data;

Please, help me

Thanks

0 REPLIES 0