PHP code example of timkippdev / graphql-starter-project
1. Go to this page and download the library: Download timkippdev/graphql-starter-project 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/ */
timkippdev / graphql-starter-project example snippets
query {
echo(message: "Hello World")
}
bash
curl http://localhost:8080 -d '{"query": "query { echo(message: \"Hello World\") }" }'
json
{ "query": "query { echo(message: \"Hello World\") }" }
json
{
"data": {
"echo": "Hello World"
}
}