api-platform / api-platform/core

Disabling GraphQL Still Shows Link for Installing GraphIQL

未關閉
#8,447 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
PHP
星號
2.6k
分支
980
平均合併
2 天 5 小時
30 天內合併 PR
48

描述

**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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。