Skip to main content
Version: 1.6.1

Importing Cypher queries (.cypherl format)

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.cypherl by issuing the following shell command:

mgconsole < queries.cypherl

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 < queries.cypherl

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

For more information about mgconsole options run:

mgconsole --help