apoc.nodes.get
Syntax |
|
||
Description |
Returns all |
||
Input arguments |
Name |
Type |
Description |
|
|
The nodes to be returned. Nodes can be of type |
|
Return arguments |
Name |
Type |
Description |
|
|
A 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;
id |
---|
3975 |
3976 |
3977 |
CALL apoc.nodes.get([3975, 3976, 3977]);
node |
---|
(:Student {name: "Alice", score: 71}) |
(:Student {name: "Mark", score: 95}) |
(:Student {name: "Andrea", score: 86}) |