Neo4j.php
protected function indexNode(array $entity): void
    {
        //$this->kernel->logger()->info("Header qualifies it to be indexed");
        $entity["attributes"]["udid"] = $entity["id"];
        $cq = sprintf("MERGE (n:%s {udid: {udid}}) SET n = {data}", $entity["label"]);
        $this->kernel->logger()->info(
            "The query will be as follows; %s with data ", 
            $cq
        //    print_r($entity["attributes"], true)
        );
        $result = $this->client->run($cq, [
            "udid" => $entity["id"],
            "data" => $entity["attributes"]
        ]);
    }
protected function indexNode(array $entity): void
    {
        //$this->kernel->logger()->info("Header qualifies it to be indexed");
        $entity["attributes"]["udid"] = $entity["id"];
        $cq = sprintf("MERGE (n:%s {udid: {udid}}) SET n = {data}", $entity["label"]);
        $this->kernel->logger()->info(
            "The query will be as follows; %s with data ", 
            $cq
        //    print_r($entity["attributes"], true)
        );
        $result = $this->client->run($cq, [
            "udid" => $entity["id"],
            "data" => $entity["attributes"]
        ]);
    }
protected function indexNode ( array $ entity ) : void { //$this->kernel->logger()->info("Header qualifies it to be indexed"); $ entity [ "attributes" ] [ "udid" ] = $ entity [ "id" ] ; $ cq = sprintf ( "MERGE (n:%s {udid: {udid}}) SET n = {data}" , $ entity [ "label" ] ) ; $ this -> kernel -> logger ( ) -> info ( "The query will be as follows; %s with data " , $ cq //    print_r($entity["attributes"], true) ) ; $ result = $ this -> client -> run ( $ cq , [ "udid" => $ entity [ "id" ] , "data" => $ entity [ "attributes" ] ] ) ; }
Indexes a node

@param array $entity In array form.

@return void
Indexes a node