【问题标题】:Directus GraphQL Playground or GraphiQL URLDirectus GraphQL Playground 或 GraphiQL URL
【发布时间】:2021-06-03 18:53:28
【问题描述】:

我开始使用 Directus 并正在寻找 Playground URL。我找到了 GraphQL 端点 xxx.com/graphql?access_token=token。但我无法找到 Playground 或 GraphiQL 的 URL。

谁能帮帮我?有谁知道游乐场是否已实施,或者我应该使用在线工具,例如:https://lucasconstantino.github.io/graphiql-online

谢谢你,最好的,

尼尔斯

【问题讨论】:

    标签: graphql directus


    【解决方案1】:

    使用 Directus v9,您可以将 GraphQL 客户端连接到 http://{yourUrl}:8055/graphql

    在 GraphQL Playground 界面底部的 Headers 选项卡中,您可以添加以下格式的授权:

    {
      "Authorization": "Bearer {token}"
    }
    

    【讨论】:

      【解决方案2】:

      我认为 Directus (v9) 没有 Graphiql 端点。看看this discussion on GitHub

      您可以使用GraphiQL online 之类的工具,或者在您使用 Directus 的节点项目中运行您自己的工具。

      【讨论】:

        猜你喜欢
        • 2016-02-04
        • 2021-07-25
        • 2019-08-01
        • 1970-01-01
        • 2020-09-05
        • 2021-09-07
        • 2018-08-03
        • 2017-03-19
        • 2020-11-12
        相关资源
        最近更新 更多