apoc.get.nodes

This is the APOC Extended documentation.

APOC Extended is not supported by Neo4j. For the officially supported APOC Core, go to the APOC Core page.

Procedure Apoc Extended

apoc.get.nodes(node|id|[ids]) - quickly returns all nodes with these id’s

Signature

apoc.get.nodes(nodes :: ANY?) :: (node :: NODE?)

Input parameters

Name Type Default

nodes

ANY?

null

Output parameters

Name Type

node

NODE?

Usage Examples

The examples in this section are based on the following graph:

CREATE (:Student {name: 'Alice', score: 71});
CREATE (:Student {name: 'Mark', score: 95});
CREATE (:Student {name: 'Andrea', score: 86});

We can return the internal IDs of these nodes using the id function:

MATCH (s:Student)
RETURN id(s) AS id;
Table 1. Results
id

3975

3976

3977

CALL apoc.get.nodes([3975, 3976, 3977]);
Table 2. Results
node

(:Student {name: "Alice", score: 71})

(:Student {name: "Mark", score: 95})

(:Student {name: "Andrea", score: 86})