Graphql 找不到GraphiQL 404页

Graphql 找不到GraphiQL 404页,graphql,shopify,storefront,graphiql,Graphql,Shopify,Storefront,Graphiql,基于此Shopify,我尝试执行以下GraphQL查询: query getDiscount($code: DiscountCodeSortKeys) { priceRules(first: 1) { edges { node { discountCodes(first: 1, sortKey: $code) { edges { node { code id

基于此Shopify,我尝试执行以下GraphQL查询:

query getDiscount($code: DiscountCodeSortKeys) {
  priceRules(first: 1) {
    edges {
      node {
        discountCodes(first: 1, sortKey: $code) {
          edges {
            node {
              code
              id
            }
          }
        }
      }
    }
  }
}
在我的Shopify管理页面的GraphiQL中,我得到以下输出:

{
  "data": {
    "priceRules": {
      "edges": [
        {
          "node": {
            "discountCodes": {
              "edges": [
                {
                  "node": {
                    "code": "discount_code_1",
                    "id": "gid://shopify/PriceRuleDiscountCode/1888888"
                  }
                }
              ]
            }
          }
        }
      ]
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 6,
      "actualQueryCost": 6,
      "throttleStatus": {
        "maximumAvailable": 1000,
        "currentlyAvailable": 994,
        "restoreRate": 50
      }
    }
  }
}
但是,当我在编辑HTTP头并放置GraphQL端点()之后在GraphiQL IDE中执行相同的查询时,我得到了一个标题为404的html代码,如下图所示:


问题出在所选方法“GET”中,当我选择“POST”方法时,它起作用了