如何为 github 编写 GraphQL 查询

How compose GraphQL query for github

如何将此字符串呈现为 GraphQL 查询

curl -H "Authorization: bearer token" https://api.github.com/graphql

请帮帮我

您可以关注“Forming Calls with GraphQL", which involves "Creating a personal access token for the command line”获取令牌。

您的 header 应该是:Authorization: bearer xxx,其中 xxx 是您生成的令牌。

举个具体的例子:“Get started with GitHub GraphQL API”。