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.

Export AuraDB as CYPHER for later import in local DB

I have used

	CALL apoc.export.cypher.all(null,{format: "plain", useOptimizations: {type: "UNWIND_BATCH", unwindBatchSize: 20},stream:TRUE
	})
	YIELD file, batches, source, format, nodes, relationships, properties, time, rows, batchSize
	RETURN *
   But i just want a long cypher that creates all the nodes and relationships and assign new IDs to them.
 

 

 
1 ACCEPTED SOLUTION

I needed to add YIELD like this: 

CALL apoc.export.cypher.all(null,{stream:true})
YIELD cypherStatements
Return cypherStatements

View solution in original post

3 REPLIES 3

I got the CYPHER from Aura with this: 

CALL apoc.export.cypher.all(null,{stream:true})

 Which gives me an entire table. How do I just get the cypherStatements?

villadsclaes2_0-1675251558260.png

 

I needed to add YIELD like this: 

CALL apoc.export.cypher.all(null,{stream:true})
YIELD cypherStatements
Return cypherStatements

According to the docs, You need to include ‘cypherStatements’ in the ‘yield’ statement. It should have the cypher. 

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online