Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions pages/data-migration/cypherl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: Navigate the essentials of working with Cypherl in Memgraph. Our do
import { Callout } from 'nextra/components'
import { Tabs } from 'nextra/components'

# Importing Cypher queries (CYPHERL format)
# Import Cypher queries (CYPHERL format)

If your data is in the form of Cypher queries (for example, `CREATE` and `MERGE`
clauses) within a **CYPHERL** file it can be imported via the visual interface
Expand All @@ -29,18 +29,19 @@ shortest path to import data into Memgraph by reading [best practices for
import](/data-migration/best-practices).
</Callout>

## Importing via Memgraph Lab
## Import via Memgraph Lab

Once your Memgraph instance is running and you've connected to it via Memgraph
Lab, go to the *Import & Export* section. To *Import Data* select the
CYPHERL file or drag and drop it into Memgraph Lab.
Lab, go to the **Import** section. To import your data, select **CYPHERL file
import**. From there, choose to either merge with your current dataset or drop
the database and start from scratch.

You can import up to 1 million nodes and relationships via Memgraph Lab using
the CYPHERL file.

![](/pages/data-migration/cypherl/import-lab.png)

## Importing via mgconsole
## Import via mgconsole

<Tabs items={['Docker 🐳', 'Linux']}>

Expand All @@ -53,7 +54,7 @@ the CYPHERL file.
3. Run the following command

```
docker exec -i CONTAINER_ID mgconsole < queries.cypherl
docker exec -i CONTAINER_ID cat file.cypherl | mgconsole
```


Expand All @@ -74,7 +75,7 @@ the CYPHERL file.
shell command:

```
mgconsole < queries.cypherl
cat file.cypherl | mgconsole
```

For more information about `mgconsole` options run:
Expand Down Expand Up @@ -132,7 +133,7 @@ relationships between these nodes.
2. Run the following command

```
docker exec -i CONTAINER_ID mgconsole < queries.cypherl
docker exec -i CONTAINER_ID cat file.cypherl | mgconsole
```

</Tabs.Tab>
Expand All @@ -142,7 +143,7 @@ relationships between these nodes.
CYPHERL file:

```
mgconsole < queries.cypherl
cat file.cypherl | mgconsole
```

</Tabs.Tab>
Expand Down Expand Up @@ -200,7 +201,7 @@ nodes and relationships in one file.
2. Run the following command

```
docker exec -i CONTAINER_ID mgconsole < queries.cypherl
docker exec -i CONTAINER_ID cat file.cypherl | mgconsole
```

</Tabs.Tab>
Expand All @@ -210,7 +211,7 @@ nodes and relationships in one file.
CYPHERL file:

```
mgconsole < queries.cypherl
cat file.cypherl | mgconsole
```

</Tabs.Tab>
Expand Down
4 changes: 2 additions & 2 deletions pages/data-migration/migrate-memgraph-platform.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Memgraph MAGE instance.
3. Run the following command:

```
docker exec -i CONTAINER_ID mgconsole < queries.cypherl
docker exec -i CONTAINER_ID cat file.cypherl | mgconsole
```

For more information about `mgconsole` options run:
Expand All @@ -75,7 +75,7 @@ Memgraph MAGE instance.
shell command:

```plaintext
mgconsole < queries.cypherl
cat file.cypherl | mgconsole
```

For more information about `mgconsole` options run:
Expand Down
Binary file modified public/pages/data-migration/cypherl/import-lab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.