private function matchRelationship(
        Identity $identity,
        object $entity,
        Relationship $meta,
        MapInterface $changeset,
        Query $query
    ): Query {
        $name = $this->name->sprintf(\md5($identity->value()));
        $this->variables = $this->variables->put(
            $name,
            $this->buildProperties(
                $changeset,
                $meta->properties()
            )
        );

        return $query
            ->match()
            ->linkedTo()
            ->through(
                (string) $meta->type(),
                (string) $name
            )
            ->withProperty(
                $meta->identity()->property(),
                (string) $name
                    ->prepend('{')
                    ->append('_identity}')
            )
            ->withParameter(
                (string) $name->append('_identity'),
                $identity->value()
            );
    }
private function matchRelationship(
        Identity $identity,
        object $entity,
        Relationship $meta,
        MapInterface $changeset,
        Query $query
    ): Query {
        $name = $this->name->sprintf(\md5($identity->value()));
        $this->variables = $this->variables->put(
            $name,
            $this->buildProperties(
                $changeset,
                $meta->properties()
            )
        );

        return $query
            ->match()
            ->linkedTo()
            ->through(
                (string) $meta->type(),
                (string) $name
            )
            ->withProperty(
                $meta->identity()->property(),
                (string) $name
                    ->prepend('{')
                    ->append('_identity}')
            )
            ->withParameter(
                (string) $name->append('_identity'),
                $identity->value()
            );
    }
private function matchRelationship ( Identity $ identity , object $ entity , Relationship $ meta , MapInterface $ changeset , Query $ query ) : Query { $ name = $ this -> name -> sprintf ( \ md5 ( $ identity -> value ( ) ) ) ; $ this -> variables = $ this -> variables -> put ( $ name , $ this -> buildProperties ( $ changeset , $ meta -> properties ( ) ) ) ; return $ query -> match ( ) -> linkedTo ( ) -> through ( ( string ) $ meta -> type ( ) , ( string ) $ name ) -> withProperty ( $ meta -> identity ( ) -> property ( ) , ( string ) $ name -> prepend ( '{' ) -> append ( '_identity}' ) ) -> withParameter ( ( string ) $ name -> append ( '_identity' ) , $ identity -> value ( ) ) ; }
Add the match clause for a relationship

@param MapInterface<string, mixed> $changeset
Add the match clause for a relationship