|
21 | 21 | use Laudis\Neo4j\Types\CypherList;
|
22 | 22 | use Laudis\Neo4j\Types\CypherMap;
|
23 | 23 | use Laudis\Neo4j\Types\Node;
|
24 |
| -use Laudis\Neo4j\Types\Relation; |
| 24 | +use Laudis\Neo4j\Types\Path; |
| 25 | +use Laudis\Neo4j\Types\Relationship; |
25 | 26 | use Laudis\Neo4j\Types\WGS843DPoint;
|
26 | 27 | use Laudis\Neo4j\Types\WGS84Point;
|
27 | 28 | use Psr\Http\Message\RequestInterface;
|
@@ -55,8 +56,8 @@ public function __construct()
|
55 | 56 | '[]' => fn (array $value): CypherList => $this->translateList($value),
|
56 | 57 | '{}' => fn (stdClass $value): CypherMap => $this->translateMap($value),
|
57 | 58 | '()' => fn (array $value): Node => new Node($value[0], new CypherList($value[1]), $this->translateMap($value[2])),
|
58 |
| - '->' => fn (array $value): Relation => new Relation($value[0], $value[1], $value[3], $value[2], $this->translateMap($value[4])), |
59 |
| - '<-' => fn (array $value): Relation => new Relation($value[0], $value[3], $value[1], $value[2], $this->translateMap($value[4])), |
| 59 | + '->' => fn (array $value): Relationship => new Relationship($value[0], $value[1], $value[3], $value[2], $this->translateMap($value[4])), |
| 60 | + '<-' => fn (array $value): Relationship => new Relationship($value[0], $value[3], $value[1], $value[2], $this->translateMap($value[4])), |
60 | 61 | '..' => fn (array $value): Path => $this->translatePath($value),
|
61 | 62 | ];
|
62 | 63 | }
|
|
0 commit comments