Skip to content

Find References

Right-click → “Find All References” (or Shift+F12) to see everywhere a GraphQL element is used.

DefinitionFinds
Fragment definitionAll fragment spreads across the project
Type definitionUsages in field types, union members, implements, input fields, arguments (schema files only; inline fragment usages are not returned)
Field definitionAll selections of that field across documents
Directive definitionAll usages across schema and document files
# Right-click on "UserFields" to find all spreads
fragment UserFields on User {
id
name
}

Finds all ...UserFields spreads across your project.

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

References are found across all files in the project, including embedded GraphQL in TypeScript/JavaScript.