private function translateRelationship($identity, EntityInterface $meta, ResultInterface $result) : CollectionInterface
 {
     $relationship = $result->relationships()->filter(function (RelationshipInterface $relationship) use($identity, $meta) {
         $id = $meta->identity()->property();
         $properties = $relationship->properties();
         return $properties->hasKey($id) && $properties->get($id) === $identity;
     })->first();
     $data = (new Collection([]))->set($meta->identity()->property(), $relationship->properties()->get($meta->identity()->property()))->set($meta->startNode()->property(), $result->nodes()->get($relationship->startNode()->value())->properties()->get($meta->startNode()->target()))->set($meta->endNode()->property(), $result->nodes()->get($relationship->endNode()->value())->properties()->get($meta->endNode()->target()));
     $meta->properties()->foreach(function (string $name, Property $property) use(&$data, $relationship) {
         if ($property->type()->isNullable() && !$relationship->properties()->hasKey($name)) {
             return;
         }
         $data = $data->set($name, $relationship->properties()->get($name));
     });
     return $data;
 }
 private function translateValueObject(ValueObject $meta, ResultInterface $result, RelationshipInterface $relationship) : CollectionInterface
 {
     $node = $result->nodes()->get($relationship->startNode()->value());
     $data = new Collection([]);
     $meta->properties()->foreach(function (string $name, Property $property) use(&$data, $node) {
         if ($property->type()->isNullable() && !$node->properties()->hasKey($name)) {
             return;
         }
         $data = $data->set($name, $node->properties()->get($name));
     });
     return $data;
 }