public function theOperationInFile($filename)
    {
        $queryFile = sprintf('%s%s%s', self::$currentFeatureFile->getPath(), DIRECTORY_SEPARATOR, $filename);
        if (file_exists($queryFile)) {
            $file = new File($queryFile);
            $this->client->setGraphQL(file_get_contents($file->getPathname()));
        } else {
            throw new FileNotFoundException(null, 0, null, $queryFile);
        }
    }
public function theOperationInFile($filename)
    {
        $queryFile = sprintf('%s%s%s', self::$currentFeatureFile->getPath(), DIRECTORY_SEPARATOR, $filename);
        if (file_exists($queryFile)) {
            $file = new File($queryFile);
            $this->client->setGraphQL(file_get_contents($file->getPathname()));
        } else {
            throw new FileNotFoundException(null, 0, null, $queryFile);
        }
    }
public function theOperationInFile ( $ filename ) { $ queryFile = sprintf ( '%s%s%s' , self :: $ currentFeatureFile -> getPath ( ) , DIRECTORY_SEPARATOR , $ filename ) ; if ( file_exists ( $ queryFile ) ) { $ file = new File ( $ queryFile ) ; $ this -> client -> setGraphQL ( file_get_contents ( $ file -> getPathname ( ) ) ) ; } else { throw new FileNotFoundException ( null , 0 , null , $ queryFile ) ; } }
Find for a file to read the GraphQL query
the file must not contains more than one query

Example: Given the operation in file 'some_query.graphql'

@Given /^the operation in file "([^"]*)"$/
Find for a file to read the GraphQL query the file must not contains more than one query