## 8.6. Locking

This section describes functions that can be used to acquire locks on nodes and relationships.

type | qualified name | signature | description
--- | --- | --- | ---
procedure | `apoc.lock.all` | `apoc.lock.all(nodes :: LIST? OF NODE?, rels :: LIST? OF RELATIONSHIP?) :: VOID` | apoc.lock.all([nodes],[relationships]) acquires a write lock on the given nodes and relationships
procedure | `apoc.lock.nodes` | `apoc.lock.nodes(nodes :: LIST? OF NODE?) :: VOID` | apoc.lock.nodes([nodes]) acquires a write lock on the given nodes
procedure | `apoc.lock.rels` | `apoc.lock.rels(rels :: LIST? OF RELATIONSHIP?) :: VOID` | apoc.lock.rels([relationships]) acquires a write lock on the given relationship