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