我开始使用Directus,并且正在寻找Playground的URL。我找到了GraphQL端点xxx.com/graphql?access_token=token。但我找不到游乐场或GraphiQL的网址。
有人能帮帮我吗?有没有人知道游乐场是否实现了,或者我应该使用在线工具,比如:https://lucasconstantino.github.io/graphiql-online
谢谢你也是最好的
Nils
发布于 2021-06-10 23:12:27
使用Directus v9,您可以将GraphQL客户端连接到http://{yourUrl}:8055/graphql。
在GraphQL Playground界面底部的Headers选项卡中,您可以按以下格式添加授权:
{
"Authorization": "Bearer {token}"
}发布于 2021-06-10 03:17:19
我不认为Directus (v9)有Graphiql端点。看看this discussion on GitHub吧。
您可以使用像GraphiQL online这样的工具,也可以在使用Directus的节点项目中运行自己的工具。
https://stackoverflow.com/questions/67827224
复制相似问题