# Similar

## Similar - Usage [Permalink for this section](/content/graphql/inspector/docs/commands/similar#similar---usage/index.html)

Run the following command:

```
graphql-inspector similar SCHEMA
```

## Arguments [Permalink for this section](/content/graphql/inspector/docs/commands/similar#arguments/index.html)

- [`SCHEMA`](/content/graphql/inspector/docs/api/schema/index.html) - point to a schema

## Flags [Permalink for this section](/content/graphql/inspector/docs/commands/similar#flags/index.html)

- `-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 V1 directives (default: `false`)
- `--federationV2` - Support Apollo Federation V2 directives (default: `false`)
- `--aws` - Support AWS Appsync directives and scalar types (default: `false`)

## Output [Permalink for this section](/content/graphql/inspector/docs/commands/similar#output/index.html)

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

The process always succeeds:

- When no similar types are found, the output is:
  
  ```
  info No similar types found
  ```
- When similar types are found, the output is:

## Examples [Permalink for this section](/content/graphql/inspector/docs/commands/similar#examples/index.html)

```
graphql-inspector similar example/schemas/deep.graphql
```

Last updated on November 11, 2025
