# Memgraph

### Description

[Memgraph](https://www.memgraph.com) is largely compatible with Neo4j and can use a lot of the Neo4j functionality in Apache Hop. Memgraph focuses on in-memory, realtime and scalable analytics.

The Memgraph compatibility with Neo4j allows you to use a lot of the Neo4j functionality in Apache Hop with Memgraph.

### Run Memgraph in docker

The `--bolt-server-name-for-init=Neo4j/` parameter needs to be set to allow Apache Hop to connect to a Memgraph database over the `bolt` protocol. More information is available in the [memgraph docs](https://memgraph.com/docs/memgraph/connect-to-memgraph/drivers/java).

Example command to start a Memgraph server in a container:

`docker run -it -p 7687:7687 -p 7444:7444 -p 3000:3000 -e MEMGRAPH="--bolt-server-name-for-init=Neo4j/" memgraph/memgraph-platform`

### What works

* [Neo4j connections](/data-shaper-1.21/knowing-the-data-shaper-designer/index-2/neo4j-connection.md): make sure to specify `bolt` instead of the default `neo4j` protocol
* most of the [Neo4j graph output](/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/neo4j-graphoutput.md), [Neo4j output](/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/neo4j-output.md), [Cypher transforms](/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/neo4j-cypher.md) and [actions](/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/neo4j-cypherscript.md) (except for index manipulation, see below) seem to work correctly.&#x20;

### Known issues

Memgraph’s index syntax differs from the Neo4j syntax, which causes the [Neo4j index](/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/neo4j-index.md) and [Neo4j constraint](/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/neo4j-constraint.md) actions to fail.

Creating indexes through a Cypher action or a Cypher transform fails with an error similar to `ERROR: org.neo4j.driver.exceptions.ClientException: Index manipulation not allowed in multicommand transactions.`.

Check the [Memgraph docs](https://memgraph.com/docs/memgraph/reference-guide/indexing) for more information on indexing.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/technology/index-4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
