Entry Point
The entry points are used for initializing a call to the GraphQL framework. Queries can come from multiple sources, such as an HTTP request or an inner service call. Entry points provide a way of calling the inner GraphQL framework logic through standard ways.
HttpEntryPoint
This entry point takes a standardized HTTP request (PSR-7) as its initial values, and returns a PSR-7 HTTP response. The configuration object must also be passed here.
// Setup configuration
$configuration = FrameworkConfiguration::create();
// ...
// Fetch PSR-7 Request
$request = Request::fromGlobals();
// Execute from EntryPoint
$entryPoint = new HttpEntryPoint($configuration);
$response = $entryPoint->executeRequest($request);
// Further handle PSR-7 response here