🛠A tool for refactoring GraphQL APIs.
NPM:
$ npm install -g graphql-usageYarn:
$ yarn global add graphql-usageNPM:
$ npm install --save-dev graphql-usageYarn:
$ yarn add -D graphql-usage- Source files using JS, Flow, or TypeScript
- Projects using Relay, Apollo, or graphql-tag
- Source files must be in a Git project and the branch that's being analyzed must be pushed to GitHub
$ graphql-usage SCHEMA SOURCEDIR- SCHEMA: Path to the Graphql schema to report usage info for. Can be either a
.jsonor.graphqlfile. - SOURCEDIR: Path to the source directory to analyze.
-h,--help: show CLI help-v,--version: show CLI version--exclude: Directories to ignore under src--port: Port to run the report server on--quiet: No output to stdout
$ graphql-usage ./schema.graphql ./src/