---
name: php186-skill-79422
description: "使用 graphql-js 参考实现和 Apollo Client 开发工具协议执行 GraphQL 模式自省。生成类型文档、查询复杂度分析以及 API 版本之间的模式差异报告。"
---

# GraphQL 模式自省工具

## GraphQL 模式自省工具

 

Performs GraphQL schema introspection using the graphql-js reference implementation and Apollo Client devtools protocol. Generates type documentation, query complexity analysis, and schema diff reports between API versions.

 

## Installation

 

Use the upstream install or setup path that matches your environment:

 

- npm install --save graphql
- yarn add graphql
- npm install graphql@git://github.com/graphql/graphql-js.git#npm

 

Requirements and caveats from upstream:

 

- GraphQL.js is a general-purpose library and can be used both in a Node server
- with both CommonJS (require()) and ESModule (import) files. Ensure that any

 

Basic usage or getting-started notes:

 

- A general overview of GraphQL is available in the
- README for the
- Specification for GraphQL. That overview
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/graphql/graphql-js/HEAD/README.md
