如何从配置文件在 VS Code 中生成 schema.graphql

问题描述 投票:0回答:0

我的根目录中有以下

graphql.config.json

{
  "name": "GraphQL Schema",
  "schemaPath": "schema.graphql",
  "documents": "./**/*.graphql",
  "extensions": {
    "endpoints": {
      "GraphQL Parse Endpoint": {
        "url": "http://localhost:1337/graphql",
        "headers": {
          "X-Parse-Application-Id": "COOK_APP",
          "X-Parse-Master-Key": "MASTER_KEY_1"
        },
        "introspect": true
      }
    }
  }
}

在 WebStorm 中,如果我将其重命名为

.graphqlconfig
(据目前所知,此名称格式被认为是 VS Code 的“遗留”),我将有一个运行按钮来获取我的
schema.graphql

如何在 VS Code 上生成相同的

schema.graphql

visual-studio-code graphql webstorm
© www.soinside.com 2019 - 2024. All rights reserved.