stefanorg / zend-expressive-graphiql

Zend Expressive GraphiQL 扩展

dev-master 2017-01-18 10:37 UTC

This package is not auto-updated.

Last update: 2024-09-28 20:03:42 UTC


README

GraphQL 浏览器界面,用于探索 GraphQL 服务器

资源

您需要将 graphql 资源复制到您的公开资源文件夹中。

模板

提供了一个 twig 模板,但您可以使用 zend-expressive 支持的模板引擎编写自己的模板。

如果您想覆盖默认配置,请向您的 templates.global.php 中添加 graphql::graphiql 模板的配置,并放置 graphiql.html.php

'templates' => [
        'extension' => 'html.php', //<-- Your extension
        'paths'     => [
            'graphql'    => ['templates/graphql'],
            ...
        ],
    ],