private function buildRecursiveUsingFragmentQuery($depth) { $query = sprintf('query MyQuery { human { ...F1 } } fragment F1 on Human %s', $this->buildRecursiveQueryPart($depth)); return $query; }