从 GraphQL HTTP 端点获取并打印 GraphQL 方案。 (可用于 Relay Modern。)
从 GraphQL HTTP 端点获取并打印 GraphQL 方案。 (可用于 Relay Modern。)
注意: 建议使用
graphql-cli来改进工作流程。
npm install -g get-graphql-schema 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,或尚未同步最近议题。