Laravel GraphiQL“文档浏览器”说“无可用模式”

我正在使用这个Laravel graphQL实现:https://github.com/rebing/graphql-laravel,它使用了这个graphiQL实现:https://github.com/graphql/graphiql

我正在尝试通过https://my_IP/graphiql路线使用graphiQL探索我的graphQL模式,但它只是说NO SCHEMA AVAILABLE如下:

Laravel GraphiQL“文档浏览器”说“无可用模式”

但是,它应该显示以下文档:https://graphql.org/swapi-graphql

我在config/graphql.php中有架构声明,如下所示:

'schemas' => [
        'default' => [
            'query' => [
                'users' => \myPath\UsersQuery::class,'subscribers' => \myPath\SubscribersQuery::class,...
            ],'mutation' => [
                ...
            ],'middleware' => [],'method' => ['get','post'],],

我是否错过了一些配置以允许进行文档探索?

yxxrain000 回答:Laravel GraphiQL“文档浏览器”说“无可用模式”

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3165409.html

大家都在问