PHP code example of efabrica / nette-graphql

1. Go to this page and download the library: Download efabrica/nette-graphql library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

efabrica / nette-graphql example snippets


$input = json_decode(file_get_contents('php://input'), true);
$response = $graphQL->executeQuery($input['query']);