Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Disabling GraphQL Still Shows Link for Installing GraphIQL

Open Beginner friendly
#8,447 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
graphql, php
Domain
api

Research direction

Start with the api_platform.graphql setting in config/packages/api_platform.yaml and trace how the Other API docs list, including the GraphiQL link, is rendered. Add or update a regression test for GraphQL-disabled configuration. Done means disabling GraphQL removes the GraphiQL link and prevents GraphiQL from being independently exposed.

Written by the indexing model from the issue text.

Description

API Platform version(s) affected: v4.3.17

Description
In config/packages/api_platform.yaml, I added graphql: false to disable GraphQL support. When I view my site in the browser, there is still a link for GraphiQL in the Other API docs at the bottom of the page. When clicked on, it tells me GraphQL is not enabled.

How to reproduce

api_platform:
    graphql: false

Possible Solution
If GraphQL is disabled, do not show the link at all. In fact, if GraphQL is disabled, do nothing with anything related to GraphQL.

Additional Context
This does not make sense to me why if I disable GraphQL the link is shown. Obviously I do not want it, so please take it away. The worst part is that I can disable GraphQL and enable GraphiQL, which makes no sense at all.

Dominant language
PHP
Stars
2.6k
Forks
982
Avg merge
1d 17h
Merged PRs (30d)
55

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from api-platform/core

All issues in api-platform/core

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.