GraphAware\Neo4j\OGM\Tests\Performance\NodeWithRelsPerformanceTest::getQuery PHP Method

getQuery() private method

private getQuery ( $numberOfPersons, $maxSkillsPerPerson )
    private function getQuery($numberOfPersons, $maxSkillsPerPerson)
    {
        $query = "\n        CALL generate.nodes('Person', '{firstName: firstName, lastName: lastName, email: email, accountBalance: randomNumber}', " . $numberOfPersons . ")\n        YIELD nodes as persons\n\t\tCALL generate.nodes('Skill', '{name: word, averageLevel: randomNumber}', " . round($numberOfPersons / 2) . ")\n\t\tYIELD nodes as skills\n\t\tCALL generate.nodes('Company', '{name: companyName}', " . round($numberOfPersons / 2) . ")\n\t\tYIELD nodes as companies\n\t\tCALL generate.relationships(persons, skills, 'HAS_SKILL', '', " . $numberOfPersons . ' , ' . $maxSkillsPerPerson . ")\n\t\tYIELD relationships as skillRels\n\t\tCALL generate.relationships(persons, companies, 'WORKS_AT', '', " . $numberOfPersons . " , '1')\n\t\tYIELD relationships as relationships RETURN * ";
        return $query;
    }