pkgs/network-cypher-graphs: let import-network-graphs produce just a script
This commit is contained in:
parent
187a20f67e
commit
287dc1be75
|
@ -162,7 +162,9 @@ in rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
import-network-graphs = runCommand "import-network-graphs" {} ''
|
import-network-graphs = writeScriptBin "import-network-graphs" ''
|
||||||
|
#! ${runtimeShell} -e
|
||||||
|
|
||||||
${curl}/bin/curl -X POST -H 'Content-type: application/json' http://localhost:7474/db/data/transaction/commit -d "{\"statements\": [{\"statement\": \"$(cat ${physical-cypher-graph})\"}]}"
|
${curl}/bin/curl -X POST -H 'Content-type: application/json' http://localhost:7474/db/data/transaction/commit -d "{\"statements\": [{\"statement\": \"$(cat ${physical-cypher-graph})\"}]}"
|
||||||
${curl}/bin/curl -X POST -H 'Content-type: application/json' http://localhost:7474/db/data/transaction/commit -d "{\"statements\": [{\"statement\": \"$(cat ${logical-cypher-graph})\"}]}"
|
${curl}/bin/curl -X POST -H 'Content-type: application/json' http://localhost:7474/db/data/transaction/commit -d "{\"statements\": [{\"statement\": \"$(cat ${logical-cypher-graph})\"}]}"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue