I am interpreting the question to be "how do get query from a node and get all the nodes it has relationships to without defining each relationship". Created a model that I think is what you're looking for. It connects five different nodes to a single node with five different relationships. The Cypher query pattern here is to anchor off the start node and not define relationship(s). The model has all nodes with the label Node
(you should use a label in a query when you can in almost all cases):
CREATE
(`0` :Node {name:'start'}) ,
(`1` :Node {name:"associated_node1"}) ,
(`2` :Node {name:"associated_node2"}) ,
(`3` :Node {name:"associated_node3"}) ,
(`4` :Node {name:"associated_node4"}) ,
(`5` :Node {name:"associated_node5"}) ,
(`0`)-[:`REL1` ]->(`1`),
(`0`)-[:`REL2` ]->(`2`),
(`0`)-[:`REL3` ]->(`3`),
(`0`)-[:`REL4` ]->(`4`),
(`0`)-[:`REL5` ]->(`5`)
The image and rudimentary create code was built using the "arrows" tool found at: Arrow Tool
The simplest query would be to start with the node that has the name property value 'start', and get all nodes via any relationship to any other node with the label :Node
:
MATCH path=(:Node {name: 'start'})-->(:Node) RETURN path
A more explicit approach would be to define how many relationship 'hops' you want the query to traverse from the start node. In this case there's only one level of relationships:
MATCH path=(:Node {name: 'start'})-[*..1]->(:Node) RETURN path
Or, get anything to any depth related to the node with label :Node
with the property name:'start'
MATCH path=(:Node {name: 'start'})-[*]->() RETURN path
As always, you should PROFILE or EXPLAIN your queries to make sure they're efficient, using indexes where it makes sense to have them, etc.