We will initially create the GraphQL API as an Action API module, but we don't think this is where it should live indefinitely. In order to avoid breaking the URL and having to update all documentation, we would like to have a URL rewrite to keep the URL stable.
The URL should be https://www.wikidata.org/graphql.
This task probably starts with a rewrite rule in apache config, possibly in https://gerrit.wikimedia.org/r/plugins/gitiles/operations/puppet/+/production/modules/mediawiki/files/apache/sites/wikidata-uris.incl:
RewriteRule ^/graphql$ %{DOCUMENT_ROOT}/w/api.php?action=wbgraphql&format=json&origin=* [L]But likely it doesn't end there, if further proxy or cache configurations are needed for grapqhl requests to be handled by API servers.