pkgs/network-cypher-graphs: let import-network-graphs produce just a script

This commit is contained in:
Astro 2022-01-09 02:59:15 +01:00
parent 187a20f67e
commit 287dc1be75
1 changed files with 3 additions and 1 deletions

View File

@ -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 ${logical-cypher-graph})\"}]}"
'';