Cypher projection
A projection built from the rows a Cypher query returns, so it can hold nodes and relationships that are derived rather than stored.
Example
People and the films they acted in.
cypher
MATCH (source:Person)-[:ACTED_IN]->(target:Movie)
WITH gds.graph.project('people-movies', source, target) AS g
RETURN g.graphName, g.nodeCount, g.relationshipCountEvery row the query returns puts its source node, its target node and a relationship between the two into the projection. A query returning a person and a genre, with only films between them in the database, would project a relationship from one to the other just the same.
Lessons that use this term
The lesson and course links below open in a new tab.
No published lesson uses this term yet.