graphql-usage
A tool for refactoring GraphQL APIs
Last updated 21 days ago by cdthomas .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install graphql-usage 
SYNC missed versions from official npm registry.

graphql-usage

Version CircleCI License

???? A tool for refactoring GraphQL APIs.

Installation

NPM:

$ npm install --save-dev graphql-usage

Yarn:

$ yarn add -D graphql-usage

Usage

$ graphql-usage SCHEMA SOURCEDIR

Arguments:

  • SCHEMA: Path to the Graphql schema to report usage info for. Can be either a .json or .graphql file.
  • SOURCEDIR: Path to the source directory to analyze.

Options:

  • -h, --help: show CLI help
  • -v, --version: show CLI version

Example:

$ graphql-usage ./schema.graphql ./src/

TODO:

  • [ ] Show usage for input types
  • [ ] Improve usage info for abstract types
  • [ ] Improve usage info for object types (e.g. whether the type is used rather than individual fields)
  • [ ] Support for analyzing TS files
  • [ ] Better support for client-only fields and client-side schemas
  • [ ] Windows support

Current Tags

  • 0.5.0                                ...           latest (21 days ago)

7 Versions

  • 0.5.0                                ...           21 days ago
  • 0.4.2                                ...           a month ago
  • 0.4.1                                ...           a month ago
  • 0.4.0                                ...           a month ago
  • 0.3.0                                ...           a month ago
  • 0.2.0                                ...           a month ago
  • 0.1.0                                ...           a month ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 26
Last Day 0
Last Week 0
Last Month 92
Dependencies (14)
Dev Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |