@check_source<EOL><INDENT>def all_relationships(self, node):<DEDENT>
self._check_node(node)<EOL>my_rel = _rel_helper(lhs='<STR_LIT>', rhs='<STR_LIT>', ident='<STR_LIT:r>', **self.definition)<EOL>q = "<STR_LIT>" + my_rel + "<STR_LIT>"<EOL>rels = self.source.cypher(q, {'<STR_LIT>': node.id})[<NUM_LIT:0>]<EOL>if not rels:<EOL><INDENT>return []<EOL><DEDENT>rel_model = self.definition.get('<STR_LIT>') or StructuredRel<EOL>return [self._set_start_end_cls(rel_model.inflate(rel[<NUM_LIT:0>]), node) for rel in rels]<EOL>
Retrieve all relationship objects between self and node.

:param node:
:return: [StructuredRel]