百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

get-graphql-schema

> 后端框架
开源

从 GraphQL HTTP 端点获取并打印 GraphQL 方案。 (可用于 Relay Modern。)

694 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

从 GraphQL HTTP 端点获取并打印 GraphQL 方案。 (可用于 Relay Modern。)

get-graphql-schema

从 GraphQL HTTP 端点获取并打印 GraphQL 方案。 (可用于 Relay Modern。)

注意: 建议使用 graphql-cli 来改进工作流程。

安装

bash
npm install -g get-graphql-schema

使用方法

bash
  Usage: get-graphql-schema [OPTIONS] ENDPOINT_URL > schema.graphql

  Fetch and print the GraphQL schema from a GraphQL HTTP endpoint
  (Outputs schema in IDL syntax by default)

  Options:
    --header, -h    Add a custom header (ex. 'X-API-KEY=ABC123'), can be used multiple times
    --json, -j      Output in JSON format (based on introspection query)
    --version, -v   Print version of get-graphql-schema

帮助与社区

如果遇到问题或有疑问,请加入我们的 Slack 社区。我们很乐意与您交流!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptapolloapollographqldevtoolsgraphql

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架