PHP code example of freshcells / graphqlite-misc-types
1. Go to this page and download the library: Download freshcells/graphqlite-misc-types 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/ */
freshcells / graphqlite-misc-types example snippets
/**
* @Query()
* @param scalar $scalar
* @return scalar
*/
public function echoScalar($scalar)
{
return $scalar;
}
$schemaFactory->addRootTypeMapper(new \TheCodingMachine\GraphQLite\Types\AnyScalar\AnyScalarTypeMapper());