Mutations

This is the documentation of the GraphQL Library version 6. For the long-term support (LTS) version 5, refer to GraphQL Library version 5 LTS.

This page shows examples of the following mutations:

  • create - create nodes, and recursively create or connect further nodes in the graph.

  • update - update nodes, and recursively perform any operations from there.

  • delete - delete nodes, and recursively delete or disconnect further nodes in the graph.

In order to provide the abstractions available in these mutations, the output Cypher can end up being complex. This can result in your database throwing out-of-memory errors depending on its configuration.

If this becomes a regular occurrence, you can adjust the server.memory.heap.max_size parameter in the DBMS settings. If you must perform major data migrations, it may be best to manually write the necessary Cypher and execute this directly in the database.