The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild

Products

Hive logoHive blurred logo

Hive

Schema Registry for your GraphQL Workflows

Skip to main content

Find similar types

Get a list of similar types in order to find duplicates.

Similar

Usage#

Run the following command:

graphql-inspector similar SCHEMA

Arguments

Flags

  • -n, --type <s> - Check only a single type (checks all types by default)
  • -t, --threshold <n> - Threshold of similarity ratio (default: 0.4)
  • -w, --write <s> - Write a file with results
  • -r, --require <s> - require a module
  • -t, --token <s> - an access token
  • -h, --header <s> - set http header (`--header 'Auth: Basic 123')
  • --method - method on url schema pointers (default: POST)
  • --federation - Support Apollo Federation directives (default: false)
  • --aws - Support AWS Appsync directives and scalar types (default: false)

Output

A list of similar types with the rating, grouped by a name.

Process always succeeds.