0

Is it possible to run queries in mgconsole non-interactively? I know that I can use a file that has query in it and redirect it, mgconsole < test.txt. I would like to avoid creating a file on a filesystem.

How can I pass Cypher query to mgconsole?

Moraltox
  • 537
  • 1
  • 7
GrandMel
  • 157
  • 8

1 Answers1

0

If you don't want to use file for input you can use echo in combination with pipe, e.g.

echo "MATCH (n) RETURN n;" | mgconsole
Moraltox
  • 537
  • 1
  • 7