Skip to main content

similar

Get a list of similar types in order to find duplicates. See the official GraphQL Inspector documentation for details.

Installation#

yarn global add @graphql-cli/similar

Usage#

graphql similar [SCHEMA]

Arguments#

argumentdescriptiondefault
SCHEMAA pointer to a schemaschema property in GraphQL Config file

Options#

optionaliasdescriptiondefault
--type-nCheck only a single typeall types
--threshold-tThreshold of similarity ratio0.4
--write-wWrite a file with resultsdisabled
--require-rRequire a module[]
--token-tAn access tokenundefined
--header-hSet HTTP header (--header 'Auth: Basic 123')undefined