![Gato GraphQL logo](/_next/static/media/GatoGraphQL-logo-suki-rectangular.d3bab7ee.png)
PHP Constants and Environment Variables via Schema
PHP Constants and Environment Variables via Schema
This extension adds global field _env
to the GraphQL schema, which allows to obtain a value from an environment variable, or from a PHP constant.
{
githubAccessToken: _env(name: "GITHUB_ACCESS_TOKEN")
}