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/similarnpm i -g @graphql-cli/similarUsage#
graphql similar [SCHEMA]Arguments#
| argument | description | default |
|---|---|---|
SCHEMA | A pointer to a schema | schema property in GraphQL Config file |
Options#
| option | 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 |