Find References
Right-click → “Find All References” (or Shift+F12) to see everywhere a GraphQL element is used.
Supported targets
Section titled “Supported targets”| Definition | Finds |
|---|---|
| Fragment definition | All fragment spreads across the project |
| Type definition | Usages in field types, union members, implements, input fields, arguments (schema files only; inline fragment usages are not returned) |
| Field definition | All selections of that field across documents |
| Directive definition | All usages across schema and document files |
Examples
Section titled “Examples”Fragment references
Section titled “Fragment references”# Right-click on "UserFields" to find all spreadsfragment UserFields on User { id name}Finds all ...UserFields spreads across your project.
Type references
Section titled “Type references”Find all places where the User type is referenced:
- Field types:
user: User - Union members:
SearchResult = User | Post - Implements:
Admin implements User - Input fields and arguments
Cross-file search
Section titled “Cross-file search”References are found across all files in the project, including embedded GraphQL in TypeScript/JavaScript.