similar
Get a list of similar types in order to find duplicates. See the official GraphQL Inspector documentation for details.
#
Installation- yarn
- npm
yarn global add @graphql-cli/similar
npm i -g @graphql-cli/similar
#
Usagegraphql similar [SCHEMA]
#
Argumentsargument | description | default |
---|---|---|
SCHEMA | A pointer to a schema | schema property in GraphQL Config file |
#
Optionsoption | alias | description | default |
---|---|---|---|
--type | -n | Check only a single type | all types |
--threshold | -t | Threshold of similarity ratio | 0.4 |
--write | -w | Write a file with results | disabled |
--require | -r | Require a module | [] |
--token | -t | An access token | undefined |
--header | -h | Set HTTP header (--header 'Auth: Basic 123' ) | undefined |