我正在使用这个 Laravel graphQL 实现:https ://github.com/rebing/graphql-laravel ,它使用这个 graphiQL 实现:https ://github.com/graphql/graphiql
我正在尝试通过https://my_IP/graphiql
路由使用 graphiQL 探索我的 graphQL 架构,但它只是说NO SCHEMA AVAILABLE
如下:
但是,它应该显示如下文档:https ://graphql.org/swapi-graphql
我的模式声明config/graphql.php
如下:
'schemas' => [
'default' => [
'query' => [
'users' => \myPath\UsersQuery::class,
'subscribers' => \myPath\SubscribersQuery::class,
...
],
'mutation' => [
...
],
'middleware' => [],
'method' => ['get', 'post'],
],
],
我是否错过了一些配置以允许文档探索?