Skip to main content
Version: 1.6.0

Importing Cypher queries

When Memgraph is running, cypher queries are imported by running mgconsole in non-interactive mode. The user can import queries saved in e.g. queries.txt by issuing the following shell command:

mgconsole --use-ssl=False < queries.txt

If you installed Memgraph using Docker, you will need to run the client using the following command:

docker run -i --entrypoint=mgconsole memgraph --host HOST --use-ssl=False < queries.txt

Remember to replace HOST with valid IP of the container (see Note for Docker users).

For more information about mgconsole options run:

mgconsole --help